Skip to content

Commit f912881

Browse files
authored
ci: use buildjet cache for steps using buildjet runners (#5545)
## Description closes #5542 Switch to use buildjet cache for steps using buildjet runners.
1 parent 7f818a0 commit f912881

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/ci.yml

+18-2
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,15 @@ jobs:
149149
uses: dtolnay/rust-toolchain@master
150150
with:
151151
toolchain: ${{ env.RUST_VERSION }}
152-
- uses: Swatinem/rust-cache@v2
152+
- uses: buildjet/cache@v3
153+
with:
154+
path: |
155+
~/.cargo/bin/
156+
~/.cargo/registry/index/
157+
~/.cargo/registry/cache/
158+
~/.cargo/git/db/
159+
target/
160+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
153161
- name: Install Forc
154162
run: cargo install --locked --debug --path ./forc
155163
- name: Install Forc plugins
@@ -365,7 +373,15 @@ jobs:
365373
uses: dtolnay/rust-toolchain@master
366374
with:
367375
toolchain: ${{ env.RUST_VERSION }}
368-
- uses: Swatinem/rust-cache@v2
376+
- uses: buildjet/cache@v3
377+
with:
378+
path: |
379+
~/.cargo/bin/
380+
~/.cargo/registry/index/
381+
~/.cargo/registry/cache/
382+
~/.cargo/git/db/
383+
target/
384+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
369385
- name: Build All Tests
370386
run: cargo run --locked --release -p forc -- build --release --locked --path ./test/src/sdk-harness
371387
- name: Cargo Test sway-lib-std

0 commit comments

Comments
 (0)