summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2023-05-27 00:22:29 -0400
committerGitHub <noreply@github.com>2023-05-27 00:22:29 -0400
commita90c32eb730d639df2cf75d89dc2108a7f0d6bce (patch)
treeffee370640d52f870325b45860881b5389f2ff3d /.github
parenteccaf11937186c1ddf3710cbcee0b2c10e8103f3 (diff)
ci: update rust-cache to 2.4.0 (#1174)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml6
-rw-r--r--.github/workflows/coverage.yml3
2 files changed, 6 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5df4f601..f181a629 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -97,10 +97,11 @@ jobs:
target: ${{ matrix.info.target }}
- name: Enable Rust cache
- uses: Swatinem/rust-cache@6fd3edff6979b79f87531400ad694fb7f2c84b1f # 2.2.1
+ uses: Swatinem/rust-cache@988c164c3d0e93c4dbab36aaf5bbeb77425b2894 # 2.4.0
if: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }} # If it is a PR, only if not a fork
with:
key: ${{ matrix.info.target }}
+ cache-all-crates: true
- name: Check cargo fmt
run: cargo fmt --all -- --check
@@ -241,10 +242,11 @@ jobs:
target: ${{ matrix.info.target }}
- name: Enable Rust cache
- uses: Swatinem/rust-cache@6fd3edff6979b79f87531400ad694fb7f2c84b1f # 2.2.1
+ uses: Swatinem/rust-cache@988c164c3d0e93c4dbab36aaf5bbeb77425b2894 # 2.4.0
if: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }} # If it is a PR, only if not a fork
with:
key: ${{ matrix.info.target }}
+ cache-all-crates: true
- name: Try building
uses: ClementTsang/cargo-action@v0.0.3
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index ad6f9bbf..18aa67d5 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -56,10 +56,11 @@ jobs:
toolchain: stable
- name: Enable Rust cache
- uses: Swatinem/rust-cache@6fd3edff6979b79f87531400ad694fb7f2c84b1f # 2.2.1
+ uses: Swatinem/rust-cache@988c164c3d0e93c4dbab36aaf5bbeb77425b2894 # 2.4.0
if: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }} # If it is a PR, only if not a fork
with:
key: ${{ matrix.info.target }}
+ cache-all-crates: true
- name: Install cargo-llvm-cov
run: |