Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Commit 0d39bc8

Browse files
committed
ci: update
* Bump the version of Bun that CI uses. * Use prebuilt sharp binaries. * Use the cache.
1 parent 5cca5d3 commit 0d39bc8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/main.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,23 @@ jobs:
3131
- name: Install bun
3232
uses: oven-sh/setup-bun@v1
3333
with:
34-
bun-version: 1.0.25
34+
bun-version: 1.0.29
3535

3636
- name: Cache
37-
uses: actions/[email protected]
37+
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
38+
id: cache
3839
with:
3940
path: |
4041
.turbo
4142
node_modules
4243
~/.bun/install/cache
43-
key: ${{ runner.os }}-bun-turbo-${{ hashFiles('**/turbo.json') }}
44+
key: ${{ runner.os }}-${{ runner.arch }}-node_modules-${{ hashFiles('**/bun.lockb', '**/turbo.json') }}
4445

4546
- name: Install dependencies
46-
run: bun install --frozen-lockfile
47+
if: steps.cache.outputs.cache-hit != 'true'
48+
run: bun --bun install --frozen-lockfile
49+
env:
50+
SHARP_IGNORE_GLOBAL_LIBVIPS: 1
4751

4852
- name: Lint & Build
4953
run: bun --bun run turbo build

0 commit comments

Comments
 (0)