From 5fe434f7050cb8975d65502baeb03b1747e00611 Mon Sep 17 00:00:00 2001 From: vin <49336820+Draculabo@users.noreply.github.com> Date: Fri, 6 Feb 2026 23:13:48 +0800 Subject: [PATCH] fix(ci): make WiX Toolset setup resilient on Windows runners (#73) --- .github/workflows/publish.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index a616d75..93ad145 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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