From 87c069849bad5d1dffc3ed93b4461bec7539f590 Mon Sep 17 00:00:00 2001 From: a-moreira Date: Tue, 2 Jan 2024 14:07:08 -0300 Subject: [PATCH] use nightly toolchain for linting --- .github/workflows/rust.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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: