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