diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index b0be2727d3..06c5872156 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -13,6 +13,10 @@ on: env: proc_num: $(nproc) +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + # https://github.com/actions/runner-images jobs: compile-with-make: diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml index 61d45ac821..4631498d86 100644 --- a/.github/workflows/ci-macos.yml +++ b/.github/workflows/ci-macos.yml @@ -13,6 +13,10 @@ on: env: proc_num: $(sysctl -n hw.logicalcpu) +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: compile-with-make-cmake-protobuf21: runs-on: macos-latest # https://github.com/actions/runner-images diff --git a/.github/workflows/license-eyes.yml b/.github/workflows/license-eyes.yml index 9ae0977871..3969942453 100644 --- a/.github/workflows/license-eyes.yml +++ b/.github/workflows/license-eyes.yml @@ -22,6 +22,11 @@ on: push: branches: - master + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: license-check: name: "License Check"