We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0956e6 commit e3b8d2dCopy full SHA for e3b8d2d
1 file changed
.github/workflows/__call-common-lint.yml
@@ -246,9 +246,19 @@ jobs:
246
247
- name: Rust - setup toolchain
248
if: always() && steps.run_cargo.outputs.found_cargo == 'true'
249
- uses: dtolnay/rust-toolchain@stable
250
- with:
251
- components: rustfmt
+ env:
+ RUST_COMPONENTS: rustfmt
+ run: |
252
+ # If no toolchain file exists, set to stable
253
+ if [ ! -f "rust-toolchain.toml" ] && [ ! -f "rust-toolchain" ]; then
254
+ rustup default stable
255
+ fi
256
+
257
+ # Install components for the active toolchain
258
+ rustup component add ${RUST_COMPONENTS}
259
260
+ # Display current toolchain information
261
+ rustup show
262
263
- name: Rust - cargo fmt
264
0 commit comments