From 8cf3b1ae0209c3c8381b1ae072d767d8b22e1e1c Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Sun, 12 Mar 2023 22:47:43 -0700 Subject: [PATCH] Better rust cache --- .github/workflows/artifacts.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index c643baaa..50b09202 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -16,6 +16,14 @@ jobs: steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable + - name: Cache Rust + uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + ./src-tauri/target + key: ${{ runner.os }}-cargo-${{ hashFiles('src-tauri/Cargo.lock') }} - uses: Swatinem/rust-cache@v2 working-directory: src-tauri - uses: actions/setup-node@v3