Skip to content

Commit 798d150

Browse files
committed
fix(ci): set rustup default before rust-cache action
Swatinem/rust-cache runs rustc -vV to compute the cache key, but rustup has no default toolchain configured in the CI image (mise manages Rust via shims). Without this, the cache action silently fails and every run compiles from scratch.
1 parent d1f229b commit 798d150

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.github/workflows/checks.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
- name: Install tools
3535
run: mise install
3636

37+
- name: Activate mise environment
38+
run: echo "$(mise env --shell bash)" >> "$GITHUB_ENV"
39+
3740
- name: Cache Rust target and registry
3841
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2
3942
with:

0 commit comments

Comments
 (0)