From 87925b2679fce457d4383fb342e580bfafc92f58 Mon Sep 17 00:00:00 2001 From: Gabriel Lopez Date: Wed, 10 Jul 2024 23:47:50 -0500 Subject: [PATCH] Add cache to basic.yml --- .github/workflows/basic.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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: