chore(ci): setup rust consistently across all workflows (#198)

This commit is contained in:
Marco Pasqualetti
2024-12-06 14:05:03 +01:00
committed by GitHub
parent 1b62d8ddc2
commit af7e51f69b
2 changed files with 14 additions and 7 deletions
+8 -1
View File
@@ -45,7 +45,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Setup rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose
@@ -57,5 +61,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo fmt --all -- --check
- run: cargo clippy -- -D warnings