[llvm] [workflows] Add a new workflow for testing release branch CI (PR #81073)
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 7 17:39:44 PST 2024
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/81073
>From a03e5489a11b6adcb3efc602150fe9483d2d47c3 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Wed, 7 Feb 2024 17:24:30 -0800
Subject: [PATCH 1/4] [workflows] Add a new workflow for testing release branch
CI
Since we commit all changes to the release branch CI to main first, we
need someway to test that these changes to main don't break the CI.
---
.../workflows/llvm-project-workflow-tests.yml | 31 +++++++++++++++++++
1 file changed, 31 insertions(+)
create mode 100644 .github/workflows/llvm-project-workflow-tests.yml
diff --git a/.github/workflows/llvm-project-workflow-tests.yml b/.github/workflows/llvm-project-workflow-tests.yml
new file mode 100644
index 0000000000000..e65a3e86ec32d
--- /dev/null
+++ b/.github/workflows/llvm-project-workflow-tests.yml
@@ -0,0 +1,31 @@
+# This workflow will test the llvm-project-tests workflow in PRs
+# targetting the main branch. Since this workflow doesn't normally
+# run on main PRs, we need some way to test it to ensure new updates
+# don't break it.
+
+name: LLVM Workflow Test
+
+permissions:
+ contents: read
+
+on:
+ branches:
+ - 'main'
+ paths:
+ - '.github/workflows/llvm-project-tests.yml'
+ - '.github/workflows/llvm-project-workflow-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:
+ llvm-test:
+ if: github.repository_owner == 'llvm'
+ name: Build and Test
+ uses: ./.github/workflows/llvm-project-tests.yml
+ with:
+ build_target: check-all
+ projects: clang;lld;libclc;lldb
>From eab3f04dab84e3b4b307034a166d0177d3d2e9d2 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Wed, 7 Feb 2024 17:35:38 -0800
Subject: [PATCH 2/4] fix typo
---
.github/workflows/llvm-project-tests.yml | 1 +
.github/workflows/llvm-project-workflow-tests.yml | 1 +
2 files changed, 2 insertions(+)
diff --git a/.github/workflows/llvm-project-tests.yml b/.github/workflows/llvm-project-tests.yml
index 68b4a68d1af98..0b42b1451e470 100644
--- a/.github/workflows/llvm-project-tests.yml
+++ b/.github/workflows/llvm-project-tests.yml
@@ -58,6 +58,7 @@ jobs:
lit-tests:
name: Lit Tests
runs-on: ${{ matrix.os }}
+ image: ${{ (runner.os == 'Linux' && ghcr.io/${{ github.repository_owner }}/ci-ubuntu-22.04:latest ) || null }}
strategy:
fail-fast: false
matrix:
diff --git a/.github/workflows/llvm-project-workflow-tests.yml b/.github/workflows/llvm-project-workflow-tests.yml
index e65a3e86ec32d..a2539b279be0a 100644
--- a/.github/workflows/llvm-project-workflow-tests.yml
+++ b/.github/workflows/llvm-project-workflow-tests.yml
@@ -9,6 +9,7 @@ permissions:
contents: read
on:
+ pull_request:
branches:
- 'main'
paths:
>From 60379f2ea2cda65fce7594f4b8627d2ec065c584 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Wed, 7 Feb 2024 17:37:39 -0800
Subject: [PATCH 3/4] Revert "fix typo"
This reverts commit eab3f04dab84e3b4b307034a166d0177d3d2e9d2.
---
.github/workflows/llvm-project-tests.yml | 1 -
.github/workflows/llvm-project-workflow-tests.yml | 1 -
2 files changed, 2 deletions(-)
diff --git a/.github/workflows/llvm-project-tests.yml b/.github/workflows/llvm-project-tests.yml
index 0b42b1451e470..68b4a68d1af98 100644
--- a/.github/workflows/llvm-project-tests.yml
+++ b/.github/workflows/llvm-project-tests.yml
@@ -58,7 +58,6 @@ jobs:
lit-tests:
name: Lit Tests
runs-on: ${{ matrix.os }}
- image: ${{ (runner.os == 'Linux' && ghcr.io/${{ github.repository_owner }}/ci-ubuntu-22.04:latest ) || null }}
strategy:
fail-fast: false
matrix:
diff --git a/.github/workflows/llvm-project-workflow-tests.yml b/.github/workflows/llvm-project-workflow-tests.yml
index a2539b279be0a..e65a3e86ec32d 100644
--- a/.github/workflows/llvm-project-workflow-tests.yml
+++ b/.github/workflows/llvm-project-workflow-tests.yml
@@ -9,7 +9,6 @@ permissions:
contents: read
on:
- pull_request:
branches:
- 'main'
paths:
>From 805b9ac6c3a555bd9dcf5a866c0c8da6a462b7ec Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Wed, 7 Feb 2024 17:38:06 -0800
Subject: [PATCH 4/4] Fix typo
---
.github/workflows/llvm-project-workflow-tests.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/llvm-project-workflow-tests.yml b/.github/workflows/llvm-project-workflow-tests.yml
index e65a3e86ec32d..a2539b279be0a 100644
--- a/.github/workflows/llvm-project-workflow-tests.yml
+++ b/.github/workflows/llvm-project-workflow-tests.yml
@@ -9,6 +9,7 @@ permissions:
contents: read
on:
+ pull_request:
branches:
- 'main'
paths:
More information about the llvm-commits
mailing list