Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/actions/install-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ runs:
steps:
- name: Install rust-toolchain.toml
shell: bash
run: rustup show
run: rustup toolchain install
- name: Install additional rustup components
if: inputs.components != ''
shell: bash
run: echo "${{ inputs.components }}" | tr ',' '\n' | xargs rustup component add
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2
with:
# Avoid caching ~/.cargo/bin on macOS — restoring it on a runner with a
# different rustup version overwrites the cargo proxy with a stale
# rustup-init, breaking `cargo fmt`/`clippy`/etc.
cache-bin: ${{ runner.os != 'macOS' }}