ci: switch to standard GitHub cache action for Bun dependencies
This commit is contained in:
parent
472d01fbaf
commit
b714bb21d2
1 changed files with 6 additions and 5 deletions
11
.github/actions/setup-bun/action.yml
vendored
11
.github/actions/setup-bun/action.yml
vendored
|
|
@ -3,12 +3,13 @@ description: "Setup Bun with caching and install dependencies"
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Mount Bun Cache
|
- name: Cache Bun dependencies
|
||||||
if: ${{ runner.os == 'Linux' }}
|
uses: actions/cache@v4
|
||||||
uses: useblacksmith/stickydisk@v1
|
|
||||||
with:
|
with:
|
||||||
key: ${{ github.repository }}-bun-cache-${{ runner.os }}
|
path: ~/.bun/install/cache
|
||||||
path: ~/.bun
|
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-bun-
|
||||||
|
|
||||||
- name: Setup Bun
|
- name: Setup Bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue