From f7be60fa996db06b20ffe56072c963f63abec02c Mon Sep 17 00:00:00 2001 From: ludamad Date: Tue, 2 Apr 2024 18:15:14 +0000 Subject: [PATCH] fix concurrency --- .github/workflows/ci.yml | 5 +++++ .github/workflows/protocol-circuits-gate-diff.yml | 1 + 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1ab72e38c00..d42849a778a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,7 @@ jobs: # cancel if reran on same PR if exists, otherwise if on same commit concurrency: group: build-${{ github.ref_name == 'master' && github.run_id || github.ref_name }}-x86 + cancel-in-progress: true steps: - name: Checkout uses: actions/checkout@v4 @@ -56,6 +57,7 @@ jobs: # cancel if reran on same PR if exists, otherwise if on same commit concurrency: group: ${{ matrix.test }}-${{ github.ref_name == 'master' && github.run_id|| github.ref_name }}-arm + cancel-in-progress: true steps: - name: Checkout uses: actions/checkout@v4 @@ -90,6 +92,7 @@ jobs: # cancel if reran on same PR if exists, otherwise if on same commit concurrency: group: ${{ matrix.test }}-${{ github.ref_name == 'master' && github.run_id || github.ref_name }}-x86 + cancel-in-progress: true steps: - name: Checkout uses: actions/checkout@v4 @@ -131,6 +134,7 @@ jobs: # cancel if reran on same PR if exists, otherwise if on same commit concurrency: group: bb-native-tests-${{ github.ref_name == 'master' && github.run_id || github.ref_name }}-${{ matrix.environment }} + cancel-in-progress: true steps: - name: Checkout uses: actions/checkout@v4 @@ -162,6 +166,7 @@ jobs: # We use a looser concurrency limit here, but we place a lock # in the actual step action so that only one bench takes place group: bench-${{ github.ref_name == 'master' && github.run_id || github.ref_name }}-x86 + cancel-in-progress: true steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/protocol-circuits-gate-diff.yml b/.github/workflows/protocol-circuits-gate-diff.yml index bff7b390f5d..8126a13193c 100644 --- a/.github/workflows/protocol-circuits-gate-diff.yml +++ b/.github/workflows/protocol-circuits-gate-diff.yml @@ -10,6 +10,7 @@ jobs: compare_protocol_circuits_gates: concurrency: group: compare_protocol_circuits_gates-${{ github.ref_name == 'master' && github.run_id || github.ref_name }} + cancel-in-progress: true if: "!startsWith(github.head_ref, 'release-please--')" runs-on: ubuntu-20.04 steps: