Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 709eff9

Browse files
committedMar 11, 2025
Install windows app sdk runtime in tests
1 parent 6f742dc commit 709eff9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎.github/workflows/ci.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@ jobs:
3636
dotnet-version: 8.0.x
3737
cache: true
3838
cache-dependency-path: '**/packages.lock.json'
39+
- name: Install Windows App SDK Runtime
40+
shell: pwsh
41+
run: |
42+
$ErrorActionPreference = "Stop"
43+
44+
$filename = ".\WindowsAppRuntimeInstall-x64.exe"
45+
$url = "https://download.microsoft.com/download/7a3a6a44-b07e-4ca5-8b63-2de185769dbc/WindowsAppRuntimeInstall-x64.exe" # 1.6.5 (1.6.250205002)
46+
& curl.exe --progress-bar --show-error --fail --location --output $filename $url
47+
if ($LASTEXITCODE -ne 0) { throw "Failed to download Windows App SDK" }
48+
49+
$process = Start-Process -FilePath $filename -ArgumentList "--quiet --force" -NoNewWindow -Wait -PassThru
50+
if ($process.ExitCode -ne 0) { throw "Failed to install Windows App SDK: exit code is $($process.ExitCode)" }
3951
- name: dotnet restore
4052
run: dotnet restore --locked-mode
4153
- name: dotnet test

0 commit comments

Comments
 (0)
Please sign in to comment.