fix(ci): make WiX Toolset setup resilient on Windows runners (#73)

This commit is contained in:
vin authored and GitHub committed 2026-02-06 23:13:48 +08:00
1 parent cda59ed3a2
commit 5fe434f705
1 file changed
+12 -2
+12 -2
View File
@@ -54,9 +54,19 @@ jobs:
sudo apt-get update
sudo apt-get install -y fakeroot rpm libsecret-1-dev pkg-config
- name: Install WiX Toolset
- name: Ensure WiX Toolset
if: matrix.platform == 'win32' && matrix.arch == 'x64'
run: choco install wixtoolset --version=3.14.0 -y
shell: powershell
run: |
$installed = choco list --local-only wixtoolset --exact --limit-output
if (-not $installed) {
choco install wixtoolset --version=3.14.0 -y
} elseif ($installed -match '^wixtoolset\|3\.14(\.|$)') {
Write-Host "WiX Toolset already compatible: $installed"
} else {
Write-Host "Incompatible WiX Toolset detected: $installed"
choco upgrade wixtoolset --version=3.14.0 --allow-downgrade -y
}
- name: Install dependencies
run: npm ci