diff options
| author | Dax Raad <[email protected]> | 2026-03-11 23:24:38 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2026-03-11 23:24:38 -0400 |
| commit | b1ef501207aa9d2c7f7ee70cbd1d9fde360be219 (patch) | |
| tree | 67a74164219fd8adff77fdd549934424333e5bd2 /.github/actions/setup-bun | |
| parent | 9fb12a906eb8b1ef5f346623d11bd86689f926b1 (diff) | |
| parent | fafbc29316e7240b348db9e91e7a8e97cd803aef (diff) | |
| download | opencode-b1ef501207aa9d2c7f7ee70cbd1d9fde360be219.tar.gz opencode-b1ef501207aa9d2c7f7ee70cbd1d9fde360be219.zip | |
Merge remote-tracking branch 'origin/dev' into dev
Diffstat (limited to '.github/actions/setup-bun')
| -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 |
