From 8bba1957dd43d496295daca2665a6ba2cbdabc02 Mon Sep 17 00:00:00 2001 From: Richard Janis Goldschmidt Date: Thu, 28 Dec 2023 19:07:54 +0100 Subject: [PATCH] set version of dtolnay/rustc-toolchain --- .github/workflows/test.yml | 48 +++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 68ed94dc52..230df24510 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -162,30 +162,30 @@ jobs: --all-targets --all-features \ -- --warn clippy::pedantic --deny warnings - # custom-lints: - # runs-on: buildjet-8vcpu-ubuntu-2204 - # needs: run_checker - # if: needs.run_checker.outputs.run_tests == 'true' && needs.run_checker.outputs.run_lint_rust == 'true' - # steps: - # - uses: actions/checkout@v3 - # - uses: dtolnay/rust-toolchain - # with: - # # This has to match `rust-toolchain` in the rust-toolchain file of the dylint lints - # toolchain: nightly-2023-10-06 - # components: "clippy, llvm-tools-preview, rustc-dev" - # - uses: Swatinem/rust-cache@v2.6.1 - # with: - # cache-provider: "buildjet" - # - name: install cargo-dylink and dylint-link - # run: cargo install cargo-dylink@v2.5.0 dylint-link@v2.5.0 --locked - # - name: run clippy against custom lints - # run: | - # cargo clippy --all-targets --all-features \ - # # Explicitly list all lints here - # -p tracing_debug_field \ - # -- --warn clippy::pedantic --deny warnings - # - name: run dylint clippy on workspace crates - # run: cargo dylint --all --workspace --all-features -- --deny warnings + custom-lints: + runs-on: buildjet-8vcpu-ubuntu-2204 + needs: run_checker + if: needs.run_checker.outputs.run_tests == 'true' && needs.run_checker.outputs.run_lint_rust == 'true' + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@v1 + with: + # This has to match `rust-toolchain` in the rust-toolchain file of the dylint lints + toolchain: nightly-2023-10-06 + components: "clippy, llvm-tools-preview, rustc-dev" + - uses: Swatinem/rust-cache@v2.6.1 + with: + cache-provider: "buildjet" + - name: install cargo-dylink and dylint-link + run: cargo install cargo-dylink@v2.5.0 dylint-link@v2.5.0 --locked + - name: run clippy against custom lints + run: | + cargo clippy --all-targets --all-features \ + # Explicitly list all lints here + -p tracing_debug_field \ + -- --warn clippy::pedantic --deny warnings + - name: run dylint clippy on workspace crates + run: cargo dylint --all --workspace --all-features -- --deny warnings test: if: ${{ always() && !cancelled() }}