Skip to content

Commit 0267f98

Browse files
authored
[workflows] Add a new workflow for testing release branch CI (#81073)
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.
1 parent 9397d23 commit 0267f98

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will test the llvm-project-tests workflow in PRs
2+
# targetting the main branch. Since this workflow doesn't normally
3+
# run on main PRs, we need some way to test it to ensure new updates
4+
# don't break it.
5+
6+
name: LLVM Workflow Test
7+
8+
permissions:
9+
contents: read
10+
11+
on:
12+
pull_request:
13+
branches:
14+
- 'main'
15+
paths:
16+
- '.github/workflows/llvm-project-tests.yml'
17+
- '.github/workflows/llvm-project-workflow-tests.yml'
18+
19+
concurrency:
20+
# Skip intermediate builds: always.
21+
# Cancel intermediate builds: only if it is a pull request build.
22+
group: ${{ github.workflow }}-${{ github.ref }}
23+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
24+
25+
jobs:
26+
llvm-test:
27+
if: github.repository_owner == 'llvm'
28+
name: Build and Test
29+
uses: ./.github/workflows/llvm-project-tests.yml
30+
with:
31+
build_target: check-all
32+
projects: clang;lld;libclc;lldb

0 commit comments

Comments
 (0)