diff options
| author | Luke Parker <[email protected]> | 2026-02-24 10:15:19 +1000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-24 10:15:19 +1000 |
| commit | ae190038f89c1fd6267c3e847a182343aa31573f (patch) | |
| tree | 83416dd5d5594fd73b9791c2532b3ac2ffc8a3ae /.github | |
| parent | 0269f39a178ad02b88196efe131dcba87849ee4d (diff) | |
| download | opencode-ae190038f89c1fd6267c3e847a182343aa31573f.tar.gz opencode-ae190038f89c1fd6267c3e847a182343aa31573f.zip | |
ci: use bun baseline build to avoid segfaults (#14839)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/actions/setup-bun/action.yml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/.github/actions/setup-bun/action.yml b/.github/actions/setup-bun/action.yml index 20d53e81e..47267775c 100644 --- a/.github/actions/setup-bun/action.yml +++ b/.github/actions/setup-bun/action.yml @@ -11,10 +11,25 @@ runs: restore-keys: | ${{ runner.os }}-bun- + - name: Get baseline download URL + id: bun-url + shell: bash + run: | + if [ "$RUNNER_ARCH" = "X64" ]; then + V=$(node -p "require('./package.json').packageManager.split('@')[1]") + case "$RUNNER_OS" in + macOS) OS=darwin ;; + Linux) OS=linux ;; + Windows) OS=windows ;; + esac + echo "url=https://bun.sh/download/${V}/${OS}/x64?avx2=false&profile=false" >> "$GITHUB_OUTPUT" + fi + - name: Setup Bun uses: oven-sh/setup-bun@v2 with: - bun-version-file: package.json + bun-version-file: ${{ !steps.bun-url.outputs.url && 'package.json' || '' }} + bun-download-url: ${{ steps.bun-url.outputs.url }} - name: Install dependencies run: bun install |
