My job is to do something or doing something? [duplicate]
Solution 1:
If teaching is your occupation, I would consider the gerund (teaching) to be more idiomatic. I would use the infinitive when referring to a one-off task.
My job was to teach the King of Ruritania's son to speak English.