From 2a5510b0749e84c315aa392c860d699dbe48db4c Mon Sep 17 00:00:00 2001 From: JP-Ellis Date: Wed, 11 Dec 2024 20:24:22 +1100 Subject: [PATCH] chore(ci): add rust caching Signed-off-by: JP-Ellis --- .github/workflows/build-ffi.yml | 1 + .github/workflows/build.yml | 3 +++ .github/workflows/compatability-suite.yml | 1 + 3 files changed, 5 insertions(+) diff --git a/.github/workflows/build-ffi.yml b/.github/workflows/build-ffi.yml index 0aa3264d..b694bf20 100644 --- a/.github/workflows/build-ffi.yml +++ b/.github/workflows/build-ffi.yml @@ -30,6 +30,7 @@ jobs: with: toolchain: stable components: rustfmt + - uses: Swatinem/rust-cache@v2 - name: Install shared mime info DB if: runner.os == 'macOS' run: brew install shared-mime-info diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d0f54038..ca3c785d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,6 +62,9 @@ jobs: - uses: taiki-e/install-action@v2 with: tool: cargo-nextest + - uses: Swatinem/rust-cache@v2 + with: + shared-key: musl - name: Tests run: cargo nextest run working-directory: rust diff --git a/.github/workflows/compatability-suite.yml b/.github/workflows/compatability-suite.yml index aac4044a..8dee7d4e 100644 --- a/.github/workflows/compatability-suite.yml +++ b/.github/workflows/compatability-suite.yml @@ -28,6 +28,7 @@ jobs: - uses: taiki-e/install-action@v2 with: tool: cargo-nextest + - uses: Swatinem/rust-cache@v2 - name: Run Cucumber # Note: cucumber's test executables are incompatible with nextest # See: https://github.com/nextest-rs/nextest/issues/1329