diff --git a/.github/workflows/check-and-lint.yaml b/.github/workflows/check-and-lint.yaml index 49c98ba..424621f 100644 --- a/.github/workflows/check-and-lint.yaml +++ b/.github/workflows/check-and-lint.yaml @@ -18,7 +18,7 @@ jobs: profile: minimal toolchain: stable override: true - - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 - uses: actions-rs/cargo@v1 with: command: check @@ -49,7 +49,7 @@ jobs: toolchain: stable components: clippy override: true - - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 - uses: actions-rs/clippy-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a6cef19..721f1b6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,6 +1,8 @@ on: push: +name: Build release binaries + jobs: publish: name: Publishing ${{ matrix.job.target }} @@ -57,7 +59,9 @@ jobs: sudo apt update sudo apt-get install -y musl-tools fi - - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 + with: + key: ${{ matrix.job.target }} - name: Cargo build uses: actions-rs/cargo@v1 with: @@ -151,7 +155,9 @@ jobs: # toolchain: stable # profile: minimal # override: true - # - uses: Swatinem/rust-cache@v1 + # - uses: Swatinem/rust-cache@v2 + # with: + # key: ${{ matrix.job.target }} # - uses: actions-rs/cargo@v1 # with: # command: publish diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 8aaa11a..24ce0fa 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -4,7 +4,6 @@ on: branches: - main - name: Tests jobs: @@ -18,7 +17,7 @@ jobs: profile: minimal toolchain: stable override: true - - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 - uses: actions-rs/cargo@v1 with: command: test @@ -34,7 +33,7 @@ jobs: toolchain: stable overrideo: true target: x86_64-apple-darwin - - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 - uses: actions-rs/cargo@v1 with: command: test