authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-04-17 09:23:02-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-04-17 16:23:02+00:00
logdf9d34004f45d529ae2fb47a590776e75578a645
treef316fdcb34c1ec716b340b98c2d0c18efac782bf
parentf297e30e4c0fe044ba5cbed7679bfcba134526fe
signature Signed by PGP key B5690EEEBB952194

Modernize release workflow runners (#2129)

Co-authored-by: codex <codex@users.noreply.github.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com>

1 files changed, 27 insertions(+), 2 deletions(-)

.github/workflows/release.yml+27-2
......@@ -156,7 +156,7 @@ jobs:
156156 target: AppImage
157157 arch: x64
158158 - label: Windows x64
159 runner: windows-2022 # blacksmith-32vcpu-windows-2025
159 runner: blacksmith-32vcpu-windows-2025
160160 platform: win
161161 target: nsis
162162 arch: x64
......@@ -188,6 +188,23 @@ jobs:
188188 - name: Align package versions to release version
189189 run: node scripts/update-release-package-versions.ts "${{ needs.preflight.outputs.version }}"
190190
191 - name: Install Spectre-mitigated MSVC libs
192 if: matrix.platform == 'win'
193 shell: pwsh
194 run: |
195 $vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"
196 $installPath = & $vswhere -products * -latest -property installationPath
197 $setupExe = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\setup.exe"
198 $proc = Start-Process -FilePath $setupExe `
199 -ArgumentList "modify", "--installPath", "`"$installPath`"", "--add", `
200 "Microsoft.VisualStudio.Component.VC.Tools.x86.x64.Spectre", "--quiet", "--norestart" `
201 -Wait -PassThru -NoNewWindow
202 if ($null -eq $proc -or $proc.ExitCode -ne 0) {
203 $code = if ($null -ne $proc) { $proc.ExitCode } else { 1 }
204 Write-Error "Visual Studio Installer failed with exit code $code"
205 exit $code
206 }
207
191208 - name: Build desktop artifact
192209 shell: bash
193210 env:
......@@ -333,7 +350,7 @@ jobs:
333350 release:
334351 name: Publish GitHub Release
335352 needs: [preflight, build, publish_cli]
336 runs-on: blacksmith-8vcpu-ubuntu-2404
353 runs-on: ubuntu-24.04 # blacksmith-8vcpu-ubuntu-2404
337354 timeout-minutes: 10
338355 steps:
339356 - name: Checkout
......@@ -341,11 +358,19 @@ jobs:
341358 with:
342359 ref: ${{ needs.preflight.outputs.ref }}
343360
361 - name: Setup Bun
362 uses: oven-sh/setup-bun@v2
363 with:
364 bun-version-file: package.json
365
344366 - name: Setup Node
345367 uses: actions/setup-node@v6
346368 with:
347369 node-version-file: package.json
348370
371 - name: Install dependencies
372 run: bun install --frozen-lockfile
373
349374 - name: Download all desktop artifacts
350375 uses: actions/download-artifact@v8
351376 with: