From 3f34c46facfb8cb48d612ec8b60b946555e575f7 Mon Sep 17 00:00:00 2001 From: Robin Salen Date: Wed, 17 Apr 2024 19:30:52 -0400 Subject: [PATCH] Update workflow --- .github/workflows/cI.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cI.yml b/.github/workflows/cI.yml index 000d91f..c2b4308 100644 --- a/.github/workflows/cI.yml +++ b/.github/workflows/cI.yml @@ -3,8 +3,12 @@ name: Continuous Integration on: push: branches: - - master + - main pull_request: + - "**" + workflow_dispatch: + branches: + - "**" concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} @@ -19,9 +23,8 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master + uses: dtolnay/rust-toolchain@nightly with: - toolchain: nightly-2024-02-01 components: clippy - uses: Swatinem/rust-cache@v2 with: @@ -35,9 +38,8 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master + uses: dtolnay/rust-toolchain@nightly with: - toolchain: nightly-2024-02-01 components: rustfmt - run: cargo fmt --all --check @@ -46,9 +48,8 @@ jobs: timeout-minutes: 20 steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master + uses: dtolnay/rust-toolchain@nightly with: - toolchain: nightly-2024-02-01 - uses: Swatinem/rust-cache@v2 with: cache-on-failure: true