diff --git a/.github/workflows/clang-tests.yml b/.github/workflows/clang-tests.yml --- a/.github/workflows/clang-tests.yml +++ b/.github/workflows/clang-tests.yml @@ -14,6 +14,12 @@ - 'llvm/**' - '.github/workflows/clang-tests.yml' +concurrency: + # Skip intermediate builds: always. + # Cancel intermediate builds: only if it is a pull request build. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + jobs: build_clang: name: clang check-all diff --git a/.github/workflows/libclang-abi-tests.yml b/.github/workflows/libclang-abi-tests.yml --- a/.github/workflows/libclang-abi-tests.yml +++ b/.github/workflows/libclang-abi-tests.yml @@ -12,6 +12,13 @@ - 'clang/**' - '.github/workflows/libclang-abi-tests.yml' +concurrency: + # Skip intermediate builds: always. + # Cancel intermediate builds: only if it is a pull request build. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + + jobs: abi-dump-setup: runs-on: ubuntu-latest diff --git a/.github/workflows/libclc-tests.yml b/.github/workflows/libclc-tests.yml --- a/.github/workflows/libclc-tests.yml +++ b/.github/workflows/libclc-tests.yml @@ -16,6 +16,13 @@ - 'libclc/**' - '.github/workflows/libclc-tests.yml' +concurrency: + # Skip intermediate builds: always. + # Cancel intermediate builds: only if it is a pull request build. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + + jobs: build_libclc: name: libclc test diff --git a/.github/workflows/lld-tests.yml b/.github/workflows/lld-tests.yml --- a/.github/workflows/lld-tests.yml +++ b/.github/workflows/lld-tests.yml @@ -14,6 +14,12 @@ - 'llvm/**' - '.github/workflows/lld-tests.yml' +concurrency: + # Skip intermediate builds: always. + # Cancel intermediate builds: only if it is a pull request build. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + jobs: build_lld: name: lld check-all diff --git a/.github/workflows/lldb-tests.yml b/.github/workflows/lldb-tests.yml --- a/.github/workflows/lldb-tests.yml +++ b/.github/workflows/lldb-tests.yml @@ -16,6 +16,13 @@ - 'lldb/**' - '.github/workflows/lldb-tests.yml' +concurrency: + # Skip intermediate builds: always. + # Cancel intermediate builds: only if it is a pull request build. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + + jobs: build_lldb: name: lldb build diff --git a/.github/workflows/llvm-tests.yml b/.github/workflows/llvm-tests.yml --- a/.github/workflows/llvm-tests.yml +++ b/.github/workflows/llvm-tests.yml @@ -12,6 +12,13 @@ - 'llvm/**' - '.github/workflows/llvm-tests.yml' +concurrency: + # Skip intermediate builds: always. + # Cancel intermediate builds: only if it is a pull request build. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + + jobs: build_llvm: name: llvm check-all