diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1a05fbf..97a0bfd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,12 +8,25 @@ jobs: pull-requests: write repository-projects: write steps: - - uses: actions/checkout@v4 - - run: rustup component add clippy - - uses: actions-rs/clippy-check@v1 + - uses: actions/checkout@v3 + + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + ./target + key: cargo- + restore-keys: | + cargo- + + - uses: dtolnay/rust-toolchain@stable + with: + components: clippy + - uses: giraffate/clippy-action@v1 with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features + reporter: 'github-pr-review' + github_token: ${{ secrets.GITHUB_TOKEN }} - name: Run tests uses: actions-rs/cargo@v1 @@ -22,4 +35,4 @@ jobs: args: --all env: CARGO_INCREMENTAL: 0 - RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests" \ No newline at end of file + RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"