diff options
author | Valentin Churavy <v.churavy@gmail.com> | 2021-10-18 17:06:31 -0700 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2021-10-18 17:06:32 -0700 |
commit | 449f3049b5075ace277748595a1495bbaa8c8d55 (patch) | |
tree | aca57b867e98d10626419019d44625f05f2a12da | |
parent | cf15ccdeb6d5254ee7d46c7535c29200003a3880 (diff) | |
download | llvm-449f3049b5075ace277748595a1495bbaa8c8d55.zip llvm-449f3049b5075ace277748595a1495bbaa8c8d55.tar.gz llvm-449f3049b5075ace277748595a1495bbaa8c8d55.tar.bz2 |
[GHA] Cancel intermediate builds on PRs
Setup GHA to skip runs when subsequent pushes to a PR occur.
Differential Revision: https://reviews.llvm.org/D111499
-rw-r--r-- | .github/workflows/clang-tests.yml | 6 | ||||
-rw-r--r-- | .github/workflows/libclang-abi-tests.yml | 7 | ||||
-rw-r--r-- | .github/workflows/libclc-tests.yml | 7 | ||||
-rw-r--r-- | .github/workflows/lld-tests.yml | 6 | ||||
-rw-r--r-- | .github/workflows/lldb-tests.yml | 7 | ||||
-rw-r--r-- | .github/workflows/llvm-tests.yml | 7 |
6 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/clang-tests.yml b/.github/workflows/clang-tests.yml index d37637e..71783e8 100644 --- a/.github/workflows/clang-tests.yml +++ b/.github/workflows/clang-tests.yml @@ -14,6 +14,12 @@ on: - '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 index c7d1993b..c533c2c 100644 --- a/.github/workflows/libclang-abi-tests.yml +++ b/.github/workflows/libclang-abi-tests.yml @@ -12,6 +12,13 @@ on: - '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 index 6be01c83..d4dbbc6 100644 --- a/.github/workflows/libclc-tests.yml +++ b/.github/workflows/libclc-tests.yml @@ -16,6 +16,13 @@ on: - '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 index 1e5540d..5cbcfcf 100644 --- a/.github/workflows/lld-tests.yml +++ b/.github/workflows/lld-tests.yml @@ -14,6 +14,12 @@ on: - '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 index 1658c0e..a3c3a53 100644 --- a/.github/workflows/lldb-tests.yml +++ b/.github/workflows/lldb-tests.yml @@ -16,6 +16,13 @@ on: - '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 index bb011c0..2fc44e9 100644 --- a/.github/workflows/llvm-tests.yml +++ b/.github/workflows/llvm-tests.yml @@ -12,6 +12,13 @@ on: - '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 |