Windows builds
runs-on: groundbox-windows-4vcpu runs a GitHub Actions job on Windows Server. Change the one line in a workflow that runs on windows-latest:
runs-on: groundbox-windows-4vcpu- Sizes:
groundbox-windows-2vcpu,groundbox-windows-4vcpu,groundbox-windows-8vcpu,groundbox-windows-16vcpu, with 4 GB of memory per vCPU. The baregroundbox-windowsis 4 vCPU. - The machine: a fresh Windows Server 2025 Datacenter VM for each job, deleted when the job ends. Nothing is left from the job before.
- Tools: Git 2.56, PowerShell 7.4, Node.js 26, Python 3.12, the .NET SDK 8 and 9, the Visual Studio 2022 Build Tools (MSBuild and the C++ tools), the GitHub CLI, 7-Zip and Chocolatey.
- A desktop: the job runs as the local administrator
runner, elevated, signed in to a 1920x1080 desktop, as on GitHub's Windows runners. Your app can open windows, and its tests can drive it, take screenshots and use the clipboard. The profile isC:\Users\runner. - Start: a new VM boots for each job, so a Windows job starts more slowly than a Linux job. The boot is not billed.
- Price: billed by the second from when the job starts, at 2 times the Linux price of the same size: 2 vCPU $0.007, 4 vCPU $0.014, 8 vCPU $0.026, 16 vCPU $0.049 a minute. GitHub's Windows runners are $0.010, $0.022, $0.042, $0.082 for the same cores, rounded up to the minute.
- Free minutes: on the free plan a Windows minute uses free minutes at 2 times its size, as GitHub counts Windows: a 2 vCPU Windows minute uses 2, a 4 vCPU one 4. Past them, Windows is paid from credit like any CI time.
- No terminal: groundbox ci ssh and the debug hold work on Linux jobs only. Leave
groundbox-debug-holdout of Windows jobs. The job's log is on GitHub. - Caches: the caches served from the job's own machine are on Linux runners only.
- GitHub Actions only: Windows Server is for CI jobs from GitHub. There is no desktop Windows, there are no Windows sandboxes, and GitLab runners are Linux.
Test a .NET project
.github/workflows/dotnet.yml
name: .NET
on: [push, pull_request]
jobs:
test:
runs-on: groundbox-windows-4vcpu
steps:
- uses: actions/checkout@v4
- run: dotnet test
Build a C++ or MSBuild solution
microsoft/setup-msbuild finds the Build Tools' MSBuild and puts it on the PATH. Put your solution in place of MyApp.sln. Without it, MSBuild is at C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe.
.github/workflows/msbuild.yml
name: MSBuild
on: [push, pull_request]
jobs:
build:
runs-on: groundbox-windows-4vcpu
steps:
- uses: actions/checkout@v4
- uses: microsoft/setup-msbuild@v2
- run: msbuild MyApp.sln /p:Configuration=Release /m