Skip to content

Commit

Permalink
chore: cache in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
fengkx committed Jul 3, 2024
1 parent 5dbaa04 commit a8a3bc6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ jobs:
with:
submodules: true
- uses: actions/setup-node@v4
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install
run: |
cargo install -f wasm-bindgen-cli wasm-opt
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ jobs:
submodules: true
- run: corepack enable
- uses: actions/setup-node@v4
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install
run: |
cargo install -f wasm-bindgen-cli wasm-opt
Expand Down

0 comments on commit a8a3bc6

Please sign in to comment.