Skip to content

Commit f7a04b6

Browse files
committed
Propagate the Buildkite pre-merge setup to GitHub Action
This is a WIP, the Buildkite script is .ci/generate-buildkite-pipeline-premerge
1 parent b1ac052 commit f7a04b6

File tree

6 files changed

+117
-4
lines changed

6 files changed

+117
-4
lines changed

.github/workflows/bolt-tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Bolt Tests
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
workflow_dispatch:
8+
push:
9+
branches:
10+
- 'main'
11+
paths:
12+
- 'bolt/**'
13+
- '.github/workflows/bolt-tests.yml'
14+
- '.github/workflows/llvm-project-tests.yml'
15+
pull_request:
16+
branches:
17+
- 'main'
18+
paths:
19+
- 'bolt/**'
20+
- '.github/workflows/bolt-tests.yml'
21+
- '.github/workflows/llvm-project-tests.yml'
22+
23+
concurrency:
24+
# Skip intermediate builds: always.
25+
# Cancel intermediate builds: only if it is a pull request build.
26+
group: ${{ github.workflow }}-${{ github.ref }}
27+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
28+
29+
jobs:
30+
check-all:
31+
if: github.repository_owner == 'llvm'
32+
name: Build and Test
33+
uses: ./.github/workflows/llvm-project-tests.yml
34+
with:
35+
build_target: check-bolt
36+
projects: bolt;lld;llvm
37+
os_list: '["ubuntu-latest"]' # tests are not supported yet on Windows

.github/workflows/flang-tests.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Flang Tests
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
workflow_dispatch:
8+
push:
9+
branches:
10+
- 'main'
11+
paths:
12+
- 'flang/**'
13+
- '.github/workflows/flang-tests.yml'
14+
- '.github/workflows/llvm-project-tests.yml'
15+
pull_request:
16+
branches:
17+
- 'main'
18+
paths:
19+
- 'flang/**'
20+
- '.github/workflows/flang-tests.yml'
21+
- '.github/workflows/llvm-project-tests.yml'
22+
23+
concurrency:
24+
# Skip intermediate builds: always.
25+
# Cancel intermediate builds: only if it is a pull request build.
26+
group: ${{ github.workflow }}-${{ github.ref }}
27+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
28+
29+
jobs:
30+
check-all:
31+
if: github.repository_owner == 'llvm'
32+
name: Build and Test
33+
uses: ./.github/workflows/llvm-project-tests.yml
34+
with:
35+
build_target: check-flang
36+
projects: flang;clang

.github/workflows/lld-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
push:
99
branches:
1010
- 'release/**'
11+
- 'main'
1112
paths:
1213
- 'lld/**'
1314
- '.github/workflows/lld-tests.yml'
@@ -16,6 +17,7 @@ on:
1617
pull_request:
1718
branches:
1819
- 'release/**'
20+
- 'main'
1921
paths:
2022
- 'lld/**'
2123
- '.github/workflows/lld-tests.yml'
@@ -34,5 +36,5 @@ jobs:
3436
name: Test lld
3537
uses: ./.github/workflows/llvm-project-tests.yml
3638
with:
37-
build_target: check-lld
38-
projects: lld
39+
build_target: check-lld check-bolt check-cross-project-tests
40+
projects: lld;

.github/workflows/llvm-project-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
125125
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
126126
${{ inputs.extra_cmake_args }}
127-
ninja -C "$builddir" '${{ inputs.build_target }}'
127+
ninja -C "$builddir" ${{ inputs.build_target }}
128128
129129
- name: Build and Test libclc
130130
if: "!startsWith(matrix.os, 'windows') && contains(inputs.projects, 'libclc')"

.github/workflows/llvm-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ on:
88
push:
99
branches:
1010
- 'release/**'
11+
- 'main'
1112
paths:
1213
- 'llvm/**'
1314
- '.github/workflows/llvm-tests.yml'
1415
- '.github/workflows/llvm-project-tests.yml'
1516
pull_request:
1617
branches:
1718
- 'release/**'
19+
- 'main'
1820
paths:
1921
- 'llvm/**'
2022
- '.github/workflows/llvm-tests.yml'
@@ -33,7 +35,7 @@ jobs:
3335
uses: ./.github/workflows/llvm-project-tests.yml
3436
with:
3537
build_target: check-all
36-
projects: clang;lld;libclc;lldb
38+
projects: clang-tools-extra;compiler-rt;flang;libc;lldb;openmp;cross-project-tests
3739

3840
abi-dump-setup:
3941
if: github.repository_owner == 'llvm'

.github/workflows/mlir-tests.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: MLIR Tests
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
workflow_dispatch:
8+
push:
9+
branches:
10+
- 'main'
11+
paths:
12+
- 'mlir/**'
13+
- '.github/workflows/mlir-tests.yml'
14+
- '.github/workflows/llvm-project-tests.yml'
15+
pull_request:
16+
branches:
17+
- 'main'
18+
paths:
19+
- 'mlir/**'
20+
- '.github/workflows/mlir-tests.yml'
21+
- '.github/workflows/llvm-project-tests.yml'
22+
23+
concurrency:
24+
# Skip intermediate builds: always.
25+
# Cancel intermediate builds: only if it is a pull request build.
26+
group: ${{ github.workflow }}-${{ github.ref }}
27+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
28+
29+
jobs:
30+
check-all:
31+
if: github.repository_owner == 'llvm'
32+
name: Build and Test
33+
uses: ./.github/workflows/llvm-project-tests.yml
34+
with:
35+
build_target: check-mlir check-flang
36+
projects: mlir;flang;clang

0 commit comments

Comments
 (0)