diff options
| author | Luke Parker <[email protected]> | 2026-03-12 13:19:28 +1000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-12 03:19:28 +0000 |
| commit | fafbc29316e7240b348db9e91e7a8e97cd803aef (patch) | |
| tree | 30371d5c9cd7e09eb224378a2fa074618a1ceeac /.github | |
| parent | 7b0def4b81b2b029a033ac67f64a9c82a3ebec64 (diff) | |
| download | opencode-fafbc29316e7240b348db9e91e7a8e97cd803aef.tar.gz opencode-fafbc29316e7240b348db9e91e7a8e97cd803aef.zip | |
fix(ci): use dynamic bun cache path for cross-platform support (#17120)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/actions/setup-bun/action.yml | 21 |
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 |
