1. Ten steps to build X.
2. Ten steps to building X.
In #1, "to build" is a to-infinitive: the sentence means "ten steps that help you build X".
In #2, "building" is a gerund, i.e. a verbal noun: the sentence means "ten steps that will get you to the point at which you can build X".
- For Teachers