From f814a6dbc33e6bde4190caa43ebf4f969a403554 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Fri, 3 May 2024 11:41:04 -0700 Subject: [PATCH] ci: Bug fix: need to check out code and install toolchain in new jobs --- .github/workflows/ci.yaml | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c6fc39c6..83a2c5da 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -63,7 +63,7 @@ jobs: profile: minimal toolchain: nightly override: true - components: rustfmt, clippy + components: rustfmt - name: fmt run: cargo fmt --all -- --check @@ -74,16 +74,23 @@ jobs: feature_flag: ["--all-features", "--no-default-features", ""] runs-on: ubuntu-latest steps: - - name: clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --all-targets ${{ matrix.feature_flag }} -- -D warnings - - name: docs - uses: actions-rs/cargo@v1 - with: - command: doc - args: --no-deps --all-targets ${{ matrix.feature_flag }} -- -D warnings + - uses: actions/checkout@v4 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + components: clippy + - name: clippy + uses: actions-rs/cargo@v1 + with: + command: clippy + args: --all-targets ${{ matrix.feature_flag }} -- -D warnings + - name: docs + uses: actions-rs/cargo@v1 + with: + command: doc + args: --no-deps --all-targets ${{ matrix.feature_flag }} -- -D warnings fuzz_read: runs-on: ubuntu-latest