summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Churavy <v.churavy@gmail.com>2021-10-18 17:06:31 -0700
committerTom Stellard <tstellar@redhat.com>2021-10-18 17:06:32 -0700
commit449f3049b5075ace277748595a1495bbaa8c8d55 (patch)
treeaca57b867e98d10626419019d44625f05f2a12da
parentcf15ccdeb6d5254ee7d46c7535c29200003a3880 (diff)
downloadllvm-449f3049b5075ace277748595a1495bbaa8c8d55.tar.gz
[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.yml6
-rw-r--r--.github/workflows/libclang-abi-tests.yml7
-rw-r--r--.github/workflows/libclc-tests.yml7
-rw-r--r--.github/workflows/lld-tests.yml6
-rw-r--r--.github/workflows/lldb-tests.yml7
-rw-r--r--.github/workflows/llvm-tests.yml7
6 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/clang-tests.yml b/.github/workflows/clang-tests.yml
index d37637e4b927..71783e8ba848 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 c7d1993ba006..c533c2c2fa8e 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 6be01c839f44..d4dbbc6bc6a0 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 1e5540d2fc4d..5cbcfcf515ab 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 1658c0e001a0..a3c3a53da4e5 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 bb011c0dafbb..2fc44e959936 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