1,009. Preparing Food Jointly Owned By a Jew and a Non-Jew

Shvisas Yom Tov 1:14

On yom tov, we are permitted to slaughter an animal that is jointly owned by a Jew and a non-Jew because it would be impossible for the Jew to eat an olive-sized portion of meat without slaughtering the animal. However, if dough is jointly owned by a Jew and a non-Jew, it is not permitted to bake it on yom tov because it is possible for the two owners to divide it. If (non-Jewish) soldiers gave flour to a Jew to bake for them on yom tov, he may do so if they do not object to him giving some of the resulting bread to an infant. When shepherds eat from the same loaves that they feed to their dogs, these loaves may be baked on yom tov.

Shvisas Yom Tov 1:15

If a Jew cooks on yom tov for non-Jews, for an animal, or to be eaten on a weekday, he is not given lashes because if guests arrived, the food that he cooked could be served to them. If a Jew makes food for himself and he has some left over, he is permitted to give it to a non-Jew or an animal.