Singapore is the closest success story I can think of.
Requirements:
- be a citizen
- get married
The government will then build a flat for you and hand you the keys 5 years later for about a fourth of the private market price.
Of course you need an economy that can pay for all this, so it won't be universally applicable