diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index e828923..b5f133e 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -27,6 +27,8 @@ jobs: with: toolchain: ${{ matrix.toolchain }} override: true + - name: Setup Cargo cache + uses: Swatinem/rust-cache@v2 - name: Build using ${{ matrix.toolchain }} for ${{ matrix.os }} uses: actions-rs/cargo@v1 with: @@ -57,6 +59,8 @@ jobs: with: toolchain: ${{ matrix.toolchain }} override: true + - name: Setup Cargo cache + uses: Swatinem/rust-cache@v2 - name: Test using ${{ matrix.toolchain }} for ${{ matrix.os }} uses: actions-rs/cargo@v1 with: diff --git a/.github/workflows/deploy_prerelease.yml b/.github/workflows/deploy_prerelease.yml index 186c05e..7c1e6f4 100644 --- a/.github/workflows/deploy_prerelease.yml +++ b/.github/workflows/deploy_prerelease.yml @@ -16,6 +16,8 @@ jobs: with: toolchain: stable-x86_64-unknown-linux-gnu override: true + - name: Setup Cargo cache + uses: Swatinem/rust-cache@v2 - name: Package uses: actions-rs/cargo@v1 with: diff --git a/.github/workflows/deploy_release.yml b/.github/workflows/deploy_release.yml index 48481c5..96e624a 100644 --- a/.github/workflows/deploy_release.yml +++ b/.github/workflows/deploy_release.yml @@ -14,6 +14,8 @@ jobs: with: toolchain: stable-x86_64-unknown-linux-gnu override: true + - name: Setup Cargo cache + uses: Swatinem/rust-cache@v2 - name: Login to crates.io uses: actions-rs/cargo@v1 with: @@ -37,6 +39,8 @@ jobs: with: toolchain: stable-x86_64-unknown-linux-gnu override: true + - name: Setup Cargo cache + uses: Swatinem/rust-cache@v2 - name: Package uses: actions-rs/cargo@v1 with: