Skip to content

Commit e29d7db

Browse files
jrusso1020claude
andcommitted
ci(preflight): cache ~/.bun/install/cache keyed on bun.lock
Each of the 5 preflight gates was doing a cold bun install, costing ~30-60s of redundant install time per PR. Cache the install dir keyed on bun.lock so subsequent preflights (and reruns) hit warm. Addresses Vai's review on #877. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 18e49cb commit e29d7db

5 files changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/catalog-previews.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ jobs:
2727
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
2828
with:
2929
node-version: 22
30+
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
31+
with:
32+
path: ~/.bun/install/cache
33+
key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }}
34+
restore-keys: |
35+
bun-${{ runner.os }}-
3036
- run: bun install --frozen-lockfile
3137
- run: bun run lint
3238
- run: bun run format:check

.github/workflows/player-perf.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ jobs:
4949
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
5050
with:
5151
node-version: 22
52+
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
53+
with:
54+
path: ~/.bun/install/cache
55+
key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }}
56+
restore-keys: |
57+
bun-${{ runner.os }}-
5258
- run: bun install --frozen-lockfile
5359
- run: bun run lint
5460
- run: bun run format:check

.github/workflows/preview-regression.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ jobs:
5353
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
5454
with:
5555
node-version: 22
56+
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
57+
with:
58+
path: ~/.bun/install/cache
59+
key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }}
60+
restore-keys: |
61+
bun-${{ runner.os }}-
5662
- run: bun install --frozen-lockfile
5763
- run: bun run lint
5864
- run: bun run format:check

.github/workflows/regression.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ jobs:
4646
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
4747
with:
4848
node-version: 22
49+
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
50+
with:
51+
path: ~/.bun/install/cache
52+
key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }}
53+
restore-keys: |
54+
bun-${{ runner.os }}-
4955
- run: bun install --frozen-lockfile
5056
- run: bun run lint
5157
- run: bun run format:check

.github/workflows/windows-render.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ jobs:
7171
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
7272
with:
7373
node-version: 22
74+
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
75+
with:
76+
path: ~/.bun/install/cache
77+
key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }}
78+
restore-keys: |
79+
bun-${{ runner.os }}-
7480
- run: bun install --frozen-lockfile
7581
- run: bun run lint
7682
- run: bun run format:check

0 commit comments

Comments
 (0)