diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index d198af4..7ee9edc 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -4,6 +4,9 @@ on: push: branches: - master +concurrency: + group: ${{ github.workflow }}-${{ github.ref_protected && github.run_id || github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: deploy: runs-on: ubuntu-latest diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml index 26b4813..9897e8b 100644 --- a/.github/workflows/security-audit.yml +++ b/.github/workflows/security-audit.yml @@ -6,6 +6,9 @@ on: - '**/Cargo.lock' schedule: - cron: '5 4 * * 6' +concurrency: + group: ${{ github.workflow }}-${{ github.ref_protected && github.run_id || github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: security_audit: runs-on: ubuntu-latest diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 82316d2..a56a9a2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,7 +2,10 @@ name: tests & formatting on: push: pull_request: - types: [opened] + types: [opened] +concurrency: + group: ${{ github.workflow }}-${{ github.ref_protected && github.run_id || github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index 1b8f45b..6640677 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -3,14 +3,16 @@ on: push: pull_request: types: [opened] +concurrency: + group: ${{ github.workflow }}-${{ github.ref_protected && github.run_id || github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: build: runs-on: windows-2022 steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: stable components: rustfmt, clippy - run: cargo fmt -- --check && cargo clippy --all-features -- -Dwarnings && cargo test --all-features