Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Match preload-caches keys with regular Rust workflow
Browse files Browse the repository at this point in the history
I missed this in the other commit.
  • Loading branch information
elasticdog committed May 5, 2023
1 parent ba933a5 commit 59d5351
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/cue/preload-caches.cue
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ preloadCaches: {
steps: [
_#checkoutCode,
_#installRust,
_#cacheRust,
_#installTool & {with: tool: "cargo-nextest"},
_#cacheRust & {with: "shared-key": "stable-${{ matrix.platform }}"},
_#installTool & {with: tool: "cargo-nextest"},
_#cargoCheck,
]
}
Expand All @@ -97,8 +97,8 @@ preloadCaches: {
id: "msrv"
run: "awk -F '\"' '/rust-version/{ print \"version=\" $2 }' Cargo.toml >> $GITHUB_OUTPUT"
},
_#installRust & {with: toolchain: "${{ steps.msrv.outputs.version }}"},
_#cacheRust,
_#installRust & {with: toolchain: "${{ steps.msrv.outputs.version }}"},
_#cacheRust & {with: "shared-key": "msrv-\(defaultRunner)"},
_#cargoCheck,
]
}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/preload-caches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- name: Cache dependencies
uses: Swatinem/rust-cache@6fd3edff6979b79f87531400ad694fb7f2c84b1f
with:
shared-key: stable-ubuntu-latest
shared-key: stable-${{ matrix.platform }}
- name: Install cargo-nextest
uses: taiki-e/install-action@a775aaf2e8ed709f76ee019cb77e39fc50613631
with:
Expand All @@ -96,6 +96,6 @@ jobs:
- name: Cache dependencies
uses: Swatinem/rust-cache@6fd3edff6979b79f87531400ad694fb7f2c84b1f
with:
shared-key: stable-ubuntu-latest
shared-key: msrv-ubuntu-latest
- name: Check packages and dependencies for errors
run: cargo check --locked

0 comments on commit 59d5351

Please sign in to comment.