diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 982897c..01cec92 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,18 +46,12 @@ jobs: steps: - name: Checkout sources uses: actions/checkout@v4 - - uses: Swatinem/rust-cache@v2 - - uses: actions-rs/toolchain@v1 + - uses: actions-rust-lang/setup-rust-toolchain@v1.9.0 with: - profile: minimal toolchain: stable components: clippy - override: true - name: Clippy check - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features + run: cargo clippy --all-features fmt: name: Rustfmt check @@ -65,18 +59,11 @@ jobs: steps: - name: Checkout sources uses: actions/checkout@v4 - - uses: Swatinem/rust-cache@v2 - - uses: actions-rs/toolchain@v1 + - uses: actions-rust-lang/setup-rust-toolchain@v1.9.0 with: - profile: minimal - toolchain: stable + toolchain: nightly components: rustfmt - override: true - - name: Rustfmt check - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + - run: cargo +nightly fmt --all -- --check prlint: name: PR name check