[CI] Pin specific rustfmt version (#57)

* [CI] Specify specific rustfmt version

* [CI] Specify platform in CI for rustfmt

* [CI] Fix cargo fmt running missing nightly version
This commit is contained in:
CosminPerRam 2023-06-25 15:42:29 +03:00 committed by GitHub
parent 89fbd81331
commit 9c93e40650
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,28 +14,28 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Run Build - name: Run Build
run: cargo build --verbose run: cargo build --verbose
- name: Run Clippy - name: Run Clippy
run: cargo clippy --verbose run: cargo clippy --verbose
- name: Run Tests - name: Run Tests
run: cargo test --verbose run: cargo test --verbose
- name: Install Formatting nightly - name: Install Audit
uses: actions-rs/toolchain@v1 run: cargo install cargo-audit
with: - name: Run Audit
toolchain: nightly run: cargo audit --deny warnings
components: rustfmt - name: Install Formatting nightly
- name: Run Formatting check uses: actions-rs/toolchain@v1
run: cargo +nightly fmt --check --verbose with:
- name: Install Audit toolchain: nightly-2023-03-01
run: cargo install cargo-audit components: rustfmt
- name: Run Audit - name: Run Formatting check
run: cargo audit --deny warnings run: cargo +nightly-2023-03-01 fmt --check --verbose
- name: Install MSRV - name: Install MSRV
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
toolchain: 1.60.0 toolchain: 1.60.0
override: true override: true
- name: Run MSRV - name: Run MSRV
run: cargo build run: cargo build