Skip to content

Commit 4a2be5b

Browse files
committed
try to cache the wasm32-wasip2
1 parent 9c4883a commit 4a2be5b

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

.github/workflows/e2e.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,26 @@ jobs:
2929
with:
3030
node-version: 21
3131

32-
- name: Install Rust toolchain
33-
uses: dtolnay/rust-toolchain@stable
32+
- name: Install Rust
33+
uses: actions-rs/toolchain@v1
34+
with:
35+
profile: minimal
36+
toolchain: stable
37+
override: true
3438

35-
- uses: Swatinem/rust-cache@v2
36-
name: Cache Cargo dependencies
39+
- name: Cache Rust target
40+
uses: actions/cache@v3
3741
with:
38-
cache-on-failure: true
42+
path: |
43+
~/.rustup/toolchains
44+
~/.cargo/bin/
45+
~/.cargo/registry/index/
46+
~/.cargo/registry/cache/
47+
~/.cargo/git/db/
48+
target/
49+
key: ${{ runner.os }}-rust-wasm32-${{ hashFiles('**/Cargo.lock') }}
50+
restore-keys: |
51+
${{ runner.os }}-rust-wasm32-
3952
4053
- uses: cargo-bins/cargo-binstall@main
4154
name: Install cargo-binstall
@@ -48,9 +61,7 @@ jobs:
4861
version: nightly
4962

5063
- name: Install rust wasm32-wasip2
51-
run: |
52-
rustup update stable
53-
rustup target add wasm32-wasip2
64+
run: rustup target add wasm32-wasip2
5465

5566
- name: Install wasi components
5667
run: |

0 commit comments

Comments
 (0)