Setting up a Windows build machine consists of a few steps:
Setting up a Windows build machine consists of a few steps:
1. Install the Unreal Engine
1. Install the Unreal Engine
2. Install MinGW or equivalent to get `envsubst` command
2. Follow [these instructions](https://answers.unrealengine.com/questions/112733/how-to-move-derived-data-cache-folder.html#answer-552735) to set the derived-data-cache directory to the build directory
3. Install the gitlab runner service and register a gitlab runner. Prefereably a shared runner. Use executor `shell`. Use the tags `windows` and `unreal-4.21`(replace version number) for the runner. Make sure to specify a user for the `gitlab-runner install` call, such that the service is not running as admin afterwards.
3. Install MinGW or equivalent to get `envsubst` command
4. Configure the gitlab runner. For this open the config.toml file and add the following lines (change path to unreal engine folder):
4. Install the gitlab runner service and register a gitlab runner. Prefereably a shared runner. Use executor `shell`. Use the tags `windows` and `unreal-4.21`(replace version number) for the runner. Make sure to specify a user for the `gitlab-runner install` call, such that the service is not running as admin afterwards.
5. Configure the gitlab runner. For this open the config.toml file and add the following lines (change path to unreal engine folder):
7. Register a gitlab-runner. Preferably a shared runner. Use executor `shell`. Use the tags `centos` and `unreal-4.21` (replace version) for your runner.
7. Follow [these instructions](https://answers.unrealengine.com/questions/112733/how-to-move-derived-data-cache-folder.html#answer-552735) to set the derived-data-cache directory to the build directory
8. Configure this runner by adding the following lines to the config.toml (locate it by gitlab-runner verify) and replace the path with your engine installation
8. Register a gitlab-runner. Preferably a shared runner. Use executor `shell`. Use the tags `centos` and `unreal-4.21` (replace version) for your runner.
9. Configure this runner by adding the following lines to the config.toml (locate it by gitlab-runner verify) and replace the path with your engine installation