Ensure rustfmt and clippy are available
This commit is contained in:
parent
a50a39fde7
commit
4814eb8547
|
|
@ -18,8 +18,8 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Rust
|
||||
run: rustup update stable && rustup default stable
|
||||
- name: Install Rustfmt
|
||||
run: rustup default stable && rustup component add rustfmt
|
||||
- name: Check formatting
|
||||
run: cargo fmt --all -- --check
|
||||
|
||||
|
|
@ -31,7 +31,7 @@ jobs:
|
|||
with:
|
||||
submodules: 'recursive'
|
||||
- name: Install Rust
|
||||
run: rustup update stable && rustup default stable
|
||||
run: rustup update --no-self-update stable && rustup default stable && rustup component add clippy
|
||||
- name: Get rust version
|
||||
id: rust-version
|
||||
run: echo "::set-output name=version::$(rustc --version)"
|
||||
|
|
|
|||
Loading…
Reference in New Issue