From 9ec634a40f5a384b901e00442f3db0f2567dfb8d Mon Sep 17 00:00:00 2001 From: Tpt Date: Mon, 5 Dec 2022 17:08:33 +0100 Subject: [PATCH] CI: Uses Clippy nightly for now to avoid the stable Clippy bug --- .github/workflows/build.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6fb7fc5..faa08c6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,14 @@ - name: build -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: + branches: + - main + schedule: + - cron: "0 0 * * 0" jobs: fmt: @@ -9,8 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - run: rustup update - - run: rustup component add rustfmt + - run: rustup update && rustup component add rustfmt - run: cargo fmt -- --check clippy: @@ -18,8 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - run: rustup update - - run: rustup component add clippy + - run: rustup update && rustup toolchain default nightly && rustup component add clippy - run: cargo clippy --all --all-targets test: @@ -29,7 +34,6 @@ jobs: with: submodules: true - run: rustup update - - run: cargo build - run: cargo test --verbose --all --all-features env: RUST_BACKTRACE: 1