From 824dd1d2cf00de62b0d895b0002e41b8d1277998 Mon Sep 17 00:00:00 2001 From: Matthew Gumport Date: Fri, 14 Jun 2024 13:49:31 -0700 Subject: [PATCH] ci: update targeted toolchains --- .github/workflows/build.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index de737fa20..a5f6b0f73 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,8 +6,7 @@ jobs: pingora: strategy: matrix: - # TODO: add nightly - toolchain: [1.78, 1.72] + toolchain: [nightly, 1.72, 1.78] runs-on: ubuntu-latest # Only run on "pull_request" event for external PRs. This is to avoid # duplicate builds for PRs created from internal branches. @@ -46,7 +45,10 @@ jobs: run: cargo test --verbose --doc - name: Run cargo clippy - run: cargo clippy --all-targets --all -- --deny=warnings + run: | + [[ ${{ matrix.toolchain }} == nightly ]] || cargo clippy --all-targets --all -- --deny=warnings - name: Run cargo audit - uses: actions-rust-lang/audit@v1 + run: | + [[ ${{ matrix.toolchain }} == nightly ]] || (cargo install cargo-audit && cargo audit) +