diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml index 56580ba10..9ee97bef6 100644 --- a/.github/workflows/basic.yml +++ b/.github/workflows/basic.yml @@ -20,6 +20,17 @@ jobs: target: wasm32-unknown-unknown override: true + - name: Rust Dependencies Cache + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + artifacts/ + key: ${{ runner.os }}-cargo-with-artifacts-${{ hashFiles('**/Cargo.lock') }} + - name: Run tests uses: actions-rs/cargo@v1 with: @@ -53,6 +64,17 @@ jobs: override: true components: rustfmt, clippy + - name: Rust Dependencies Cache + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + artifacts/ + key: ${{ runner.os }}-cargo-with-artifacts-${{ hashFiles('**/Cargo.lock') }} + - name: Run cargo fmt uses: actions-rs/cargo@v1 with: