From 5132c5a901a54d30298bcb3dc6a52d1c6a897178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Sol=C3=A1r?= Date: Thu, 25 Jun 2026 20:40:43 +0000 Subject: [PATCH] fix(ci): write bun installer to RUNNER_TEMP on Windows ARM The Windows ARM bun install downloaded install.ps1 into the repo checkout, leaving an untracked file that broke the next step's pnpm version clean-tree check. Write and run it from RUNNER_TEMP. --- .github/workflows/pre_release.yaml | 5 +++-- .github/workflows/release.yaml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pre_release.yaml b/.github/workflows/pre_release.yaml index dcfed99ca..3cf3f9d14 100644 --- a/.github/workflows/pre_release.yaml +++ b/.github/workflows/pre_release.yaml @@ -133,12 +133,13 @@ jobs: if: ${{ matrix.os == 'windows-11-arm' }} run: | $bunVersion = (Get-Content .bun-version).Trim() - irm bun.sh/install.ps1 -OutFile install.ps1 + $installer = Join-Path $env:RUNNER_TEMP install.ps1 + irm bun.sh/install.ps1 -OutFile $installer # Bun doesn't have Windows ARM64 builds, so the setup-bun action fails. The install script however, # does "support" it. - .\install.ps1 -Version $bunVersion + & $installer -Version $bunVersion Join-Path (Resolve-Path ~).Path ".bun\bin" >> $env:GITHUB_PATH diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e6f75894c..7c1d6c3c8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -161,12 +161,13 @@ jobs: if: ${{ matrix.os == 'windows-11-arm' }} run: | $bunVersion = (Get-Content .bun-version).Trim() - irm bun.sh/install.ps1 -OutFile install.ps1 + $installer = Join-Path $env:RUNNER_TEMP install.ps1 + irm bun.sh/install.ps1 -OutFile $installer # Bun doesn't have Windows ARM64 builds, so the setup-bun action fails. The install script however, # does "support" it. - .\install.ps1 -Version $bunVersion + & $installer -Version $bunVersion Join-Path (Resolve-Path ~).Path ".bun\bin" >> $env:GITHUB_PATH