Skip to content

Commit bea97da

Browse files
committed
ci: install x86 .NET 10 runtime on Windows x86 builds
The x86 test host requires an x86 .NET runtime, which isn't pre-installed on the GitHub runner, nor can the actions/setup-dotnet action install it (only the native arch SDK is installed). Install it manually using the official installer script. Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
1 parent 1fd451c commit bea97da

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/continuous-integration.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ jobs:
3232
with:
3333
dotnet-version: 10.0.x
3434

35+
# The x86 test host requires an x86 .NET runtime, which isn't pre-installed
36+
# on the runner, nor can the actions/setup-dotnet action install it.
37+
# Install it manually so tests can run.
38+
- name: Setup .NET (x86)
39+
if: matrix.runtime == 'win-x86'
40+
run: |
41+
Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1' -OutFile dotnet-install.ps1
42+
./dotnet-install.ps1 -Channel 10.0 -Architecture x86 -InstallDir 'C:\Program Files (x86)\dotnet'
43+
3544
- name: Install dependencies
3645
run: dotnet restore
3746

0 commit comments

Comments
 (0)