Skip to content

Commit 68186cd

Browse files
committed
Cache worker-build in CI
1 parent b8e36c3 commit 68186cd

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,17 @@ jobs:
2626
- name: Install wasm target
2727
run: rustup target add wasm32-unknown-unknown
2828

29+
- name: Cache worker-build
30+
uses: actions/cache@v4
31+
with:
32+
path: ~/.cargo/bin/worker-build
33+
key: ${{ runner.os }}-worker-build-0.7
34+
2935
- name: Install worker-build
30-
run: cargo install worker-build@^0.7
36+
run: |
37+
if ! command -v worker-build >/dev/null; then
38+
cargo install worker-build@^0.7
39+
fi
3140
3241
- name: Set up Bun
3342
uses: oven-sh/setup-bun@v2

0 commit comments

Comments
 (0)