Summary

Yosef Karo Translation:Shulchan Aruch — Orach Chaim 512…

We do not cook for non-Jews on a holiday. Therefore, it is forbidden to invite one over, lest one cook more for because of him. This rule is restricted to inviting him. Rem”a: to one's house, but it is permitted to send him food to his house in the hands of a non-Jew (Hagahot Maimoni chapter 1 in the name of the Or Zarua) .' However, it is permitted to feed one's slave or servant or a messenger sent to him or a non-Jew who showed up without invitation, and we do not worry that he will cook more because of the non-Jew.
Source: Wikisource

Yosef Karo Translation:Shulchan Aruch — Orach Chaim 512…

If non-Jewish soldiers give flour to a Jew to bake them bread and they will not be mad if the Jew gives some of it to a baby, he is permitted to bake for them.
סעיף ב – בני החיל של כותים שנתנו קמח שלהם לישראל לאפות להם פת, אם אינם מקפידים כשישראל נותן ממנו לתינוק, מתר לאפות להם.
Source: Wikisource

Get perspective with Kwize: daily news enlightened by great literature