diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 88524fa5..da0c1abe 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,6 +30,8 @@ jobs: - name: Setup Rust cache uses: Swatinem/rust-cache@v2 + with: + shared-key: ${{ runner.os }} - name: Verify version matches tag run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 36afc671..d30f5ecf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,6 +26,8 @@ jobs: - name: Setup Rust cache uses: Swatinem/rust-cache@v2 + with: + shared-key: ${{ runner.os }} - name: Install nextest uses: taiki-e/install-action@nextest @@ -79,6 +81,11 @@ jobs: sudo chown -R ci:ci /home/ci/.cargo/git || true fi + - name: Setup Rust cache + uses: Swatinem/rust-cache@v2 + with: + shared-key: ${{ runner.os }} + - name: Setup Rust environment and install nextest run: | source ~/.cargo/env @@ -132,6 +139,8 @@ jobs: - name: Setup Rust cache uses: Swatinem/rust-cache@v2 + with: + shared-key: ${{ runner.os }} - name: Install nextest uses: taiki-e/install-action@nextest @@ -160,6 +169,8 @@ jobs: - name: Setup Rust cache uses: Swatinem/rust-cache@v2 + with: + shared-key: ${{ runner.os }} - name: Run clippy run: cargo clippy --all-targets -- -D warnings @@ -177,5 +188,10 @@ jobs: toolchain: stable components: rustfmt + - name: Setup Rust cache + uses: Swatinem/rust-cache@v2 + with: + shared-key: ${{ runner.os }} + - name: Check formatting run: cargo fmt -- --check