Skip to content
Merged
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
24 changes: 7 additions & 17 deletions .github/workflows/__call-common-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,26 +244,16 @@ jobs:
echo "found_cargo=false" >> $GITHUB_OUTPUT
fi

- name: Rust - setup toolchain
if: always() && steps.run_cargo.outputs.found_cargo == 'true'
env:
RUST_COMPONENTS: rustfmt
run: |
# If no toolchain file exists, set to stable
if [ ! -f "rust-toolchain.toml" ] && [ ! -f "rust-toolchain" ]; then
rustup default stable
fi

# Install components for the active toolchain
rustup component add ${RUST_COMPONENTS}

# Display current toolchain information
rustup show
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1.12.0
with:
target: ${{ matrix.target }}
components: 'rustfmt'
cache: false

- name: Rust - cargo fmt
if: always() && steps.run_cargo.outputs.found_cargo == 'true'
run: |
cargo fmt -- --check
run: cargo fmt -- --check

- name: YAML - find files
id: yaml_files
Expand Down