summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLuke Parker <[email protected]>2026-03-12 13:19:28 +1000
committerGitHub <[email protected]>2026-03-12 03:19:28 +0000
commitfafbc29316e7240b348db9e91e7a8e97cd803aef (patch)
tree30371d5c9cd7e09eb224378a2fa074618a1ceeac
parent7b0def4b81b2b029a033ac67f64a9c82a3ebec64 (diff)
downloadopencode-fafbc29316e7240b348db9e91e7a8e97cd803aef.tar.gz
opencode-fafbc29316e7240b348db9e91e7a8e97cd803aef.zip
fix(ci): use dynamic bun cache path for cross-platform support (#17120)
-rw-r--r--.github/actions/setup-bun/action.yml21
1 files changed, 13 insertions, 8 deletions
diff --git a/.github/actions/setup-bun/action.yml b/.github/actions/setup-bun/action.yml
index 3f06da519..f53f20fcd 100644
--- a/.github/actions/setup-bun/action.yml
+++ b/.github/actions/setup-bun/action.yml
@@ -3,14 +3,6 @@ description: "Setup Bun with caching and install dependencies"
runs:
using: "composite"
steps:
- - name: Cache Bun dependencies
- uses: actions/cache@v4
- with:
- path: ~/.bun/install/cache
- key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
- restore-keys: |
- ${{ runner.os }}-bun-
-
- name: Get baseline download URL
id: bun-url
shell: bash
@@ -31,6 +23,19 @@ runs:
bun-version-file: ${{ !steps.bun-url.outputs.url && 'package.json' || '' }}
bun-download-url: ${{ steps.bun-url.outputs.url }}
+ - name: Get cache directory
+ id: cache
+ shell: bash
+ run: echo "dir=$(bun pm cache)" >> "$GITHUB_OUTPUT"
+
+ - name: Cache Bun dependencies
+ uses: actions/cache@v4
+ with:
+ path: ${{ steps.cache.outputs.dir }}
+ key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
+ restore-keys: |
+ ${{ runner.os }}-bun-
+
- name: Install setuptools for distutils compatibility
run: python3 -m pip install setuptools || pip install setuptools || true
shell: bash