File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed
.github/actions/setup-bun Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,6 @@ description: "Setup Bun with caching and install dependencies"
33runs :
44 using : " composite"
55 steps :
6- - name : Cache Bun dependencies
7- uses : actions/cache@v4
8- with :
9- path : ~/.bun/install/cache
10- key : ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
11- restore-keys : |
12- ${{ runner.os }}-bun-
13-
146 - name : Get baseline download URL
157 id : bun-url
168 shell : bash
3123 bun-version-file : ${{ !steps.bun-url.outputs.url && 'package.json' || '' }}
3224 bun-download-url : ${{ steps.bun-url.outputs.url }}
3325
26+ - name : Get cache directory
27+ id : cache
28+ shell : bash
29+ run : echo "dir=$(bun pm cache)" >> "$GITHUB_OUTPUT"
30+
31+ - name : Cache Bun dependencies
32+ uses : actions/cache@v4
33+ with :
34+ path : ${{ steps.cache.outputs.dir }}
35+ key : ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
36+ restore-keys : |
37+ ${{ runner.os }}-bun-
38+
3439 - name : Install setuptools for distutils compatibility
3540 run : python3 -m pip install setuptools || pip install setuptools || true
3641 shell : bash
You can’t perform that action at this time.
0 commit comments