diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 31e7d2a..81c260c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -27,17 +27,27 @@ jobs: linting: runs-on: ubuntu-latest - + + steps: + # Install Rust nightly toolchain + - uses: actions/checkout@v3 + - name: Install nightly toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + steps: # cargo fmt - uses: actions/checkout@v3 - name: fmt - run: cargo fmt --all --check + run: cargo +nightly fmt --all --check # run cargo clippy - uses: actions/checkout@v3 - name: Clippy - run: cargo clippy --all + run: cargo +nightly clippy --all cross-testing: strategy: