The Shulchan Aruch · Orach Chayim
אורח חיים תקמ״גOrach Chayim 543
Siman 543 of 697 in Orach Chayim — 3 se'ifim
הלכות חול המועדLaws of Chol HaMoed· siman 543
Se’if 1א׳
כָּל דָּבָר שֶׁאָסוּר לַעֲשׂוֹתוֹ אָסוּר לוֹמַר לְעַכּוּ"ם לַעֲשׁוֹתוֹ.
1. Law of work done by a Gentile on Chol HaMoed, and in it is 3 paragraphs. Anything that is forbidden to do, it is forbidden to ask a Gentile to do.
Se’if 2ב׳
עַכּוּ"ם שֶׁקִּבֵּל מֵעֶרֶב יוֹם טוֹב לִבְנוֹת בֵּיתוֹ שֶׁל יִשְׂרָאֵל בְּקַבְּלָנוּת, אָסוּר לְהַנִּיחַ לַעֲשׂוֹת בְּחֹל הַמּוֹעֵד, אַף עַל פִּי שֶׁהוּא חוּץ לַתְּחוּם; אֲבָל אִם נָתַן לוֹ מְלָאכָה בְּתָלוּשׁ קֹדֶם הַמּוֹעֵד, בְּקַבְּלָנוּת, לַעֲשׂוֹתָהּ בְּתוֹךְ בֵּיתוֹ שֶׁל עַכּוּ"ם, מֻתָּר.
2. A gentile that accepts from the eve of Yom Tov to build a Jewish house with a contracted agreement (i.e. agreement where payment is made not based on time but a set amount for a task), it is forbidden to let him do on Chol HaMoed even outside of the Domain (Techum). But if he (the Gentile) was given to him work that is detached before the Festival with a contract to do within the Gentile's house, it is allowed.
Se’if 3ג׳
מֻתָּר לִתֵּן לְעַכּוּ"ם מְלָאכָה, בְּקִיבּוֹלֶת אוֹ בִּשְׂכִיר יוֹם, שֶׁיַּעֲשֶׂנָּה אַחַר הַמּוֹעֵד; וּבִלְבַד שֶׁלֹּא יִמְדֹּד וְיִשְׁקֹל וְיִמְנֶה כְּדֶרֶךְ שֶׁעוֹשֶׂה בַּחֹל. הַגָּה: וְאַף אִם יַעֲשֶׂה הָעַכּוּ"ם אַחַר כָּךְ מְלָאכָה, שָׁרֵי, הוֹאִיל וְהִתְנָה עִמּוֹ לַעֲשׂוֹתָהּ אַחַר הַמּוֹעֵד (מָרְדְּכַי רֵישׁ פ' מִי שֶׁהָפַךְ וּבֵית יוֹסֵף וְרַבֵּנוּ יְרוּחָם).
It is permitted to hire a gentile as a contractor or even as a day worker to work after the moed provided that one does not measure, weigh or count, as would be done during the week. REMA: If the gentile decides to do the work during chol hamoed - it is permitted since the Jew stipulated that the work should be done after the moed.
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0