GitHub Actions - Self-hosted Windows Runners

This folder contains the required resources to deploy the GitHub Actions self-hosted runners for the workflows running in Windows OS.

How to build a new instance template for the instance group?

  • Create a new VM Instance using Windows 2019 Datacenter OS with at least 70GB of disk, 2vCPUs and 8 GB of RAM.

  • Install the following software:

    • VS Build Tools 2019
    • MS Build Tools
    • Desktop Development with C++
    • Testing tool Core Features
    • Windows 10 SDK
    • Git 2.34.1.windows.1
    • Git LFS
    • Git Bash
  • Create an image disk from the VM instance.

  • Now that you have the image disk you can create an instance template by using it and adding the startup and shutdown scripts through the respective metadata fields.

Be sure that you are using a service account that has permissions to invoke cloud functions.

Now that the instance template is ready you can use it to either run it independently for an individual runner or create an instance group for a set of runners.