Skip to content

Commit 8f3e29d

Browse files
committed
Add workflows for libc++ to replace buildkite builders
Also remove duplicate workflows for github
1 parent d4cec1c commit 8f3e29d

File tree

4 files changed

+710
-280
lines changed

4 files changed

+710
-280
lines changed
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
name: Build and Test libc++
2+
3+
on: pull_request
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
6+
cancel-in-progress: true
7+
8+
permissions:
9+
checks: write
10+
11+
env:
12+
CMAKE: "/opt/bin/cmake"
13+
14+
# Comment
15+
jobs:
16+
stage1:
17+
runs-on: libcxx-runners-16
18+
continue-on-error: false
19+
strategy:
20+
fail-fast: true
21+
matrix:
22+
config: [ 'generic-cxx26', 'generic-cxx03', 'generic-modules' ]
23+
cc: [ 'clang-18' ]
24+
cxx: [ 'clang++-18' ]
25+
include:
26+
- config: 'generic-gcc'
27+
cc: 'gcc-13'
28+
cxx: 'g++-13'
29+
steps:
30+
- uses: actions/checkout@v4
31+
with:
32+
fetch-depth: 5
33+
- name: ${{ matrix.config }}.${{ matrix.cxx }}
34+
run: libcxx/utils/ci/run-buildbot ${{ matrix.config }}
35+
env:
36+
CC: ${{ matrix.cc }}
37+
CXX: ${{ matrix.cxx }}
38+
- uses: actions/upload-artifact@v3
39+
if: always()
40+
with:
41+
name: ${{ matrix.config }}-${{ matrix.cxx }}-results
42+
path: |
43+
"**/test-results.xml"
44+
"**/*.abilist"
45+
stage2:
46+
runs-on: libcxx-runners-16
47+
needs: [ stage1 ]
48+
continue-on-error: false
49+
strategy:
50+
fail-fast: true
51+
max-parallel: 4
52+
matrix:
53+
config: [ 'generic-cxx11', 'generic-cxx14', 'generic-cxx17',
54+
'generic-cxx20', 'generic-cxx23' ]
55+
include:
56+
- config: 'generic-gcc-cxx11'
57+
cc: 'gcc-13'
58+
cxx: 'g++-13'
59+
- config: 'generic-cxx23'
60+
cc: 'clang-16'
61+
cxx: 'clang++-16'
62+
- config: 'generic-cxx23'
63+
cc: 'clang-17'
64+
cxx: 'clang++-17'
65+
steps:
66+
- uses: actions/checkout@v4
67+
with:
68+
fetch-depth: 5
69+
- name: ${{ matrix.config }}
70+
run: libcxx/utils/ci/run-buildbot ${{ matrix.config }}
71+
env:
72+
CC: 'clang-18'
73+
CXX: 'clang++-18'
74+
- uses: actions/upload-artifact@v3
75+
if: always()
76+
with:
77+
name: ${{ matrix.config }}-results
78+
path: |
79+
"**/test-results.xml"
80+
"**/*.abilist"
81+
stage3-sanitizers:
82+
runs-on: libcxx-runners-16
83+
needs: [ stage1, stage2 ]
84+
continue-on-error: false
85+
strategy:
86+
fail-fast: true
87+
matrix:
88+
config: [ 'generic-asan', 'generic-msan', 'generic-tsan', 'generic-ubsan' ]
89+
steps:
90+
- uses: actions/checkout@v4
91+
with:
92+
fetch-depth: 5
93+
- name: ${{ matrix.config }}
94+
run: libcxx/utils/ci/run-buildbot ${{ matrix.config }}
95+
env:
96+
CC: clang-18
97+
CXX: clang++-18
98+
- uses: actions/upload-artifact@v3
99+
if: always()
100+
with:
101+
name: ${{ matrix.config }}-results
102+
path: |
103+
"**/test-results.xml"
104+
"**/*.abilist"
105+
stage3-remainder:
106+
runs-on: libcxx-runners-8
107+
needs: [ stage1, stage2 ]
108+
continue-on-error: false
109+
strategy:
110+
fail-fast: true
111+
max-parallel: 8
112+
matrix:
113+
config: [ 'generic-no-threads', 'generic-no-filesystem', 'generic-no-random_device',
114+
'generic-no-localization', 'generic-no-unicode', 'generic-no-wide-characters',
115+
'generic-no-experimental', 'generic-no-exceptions',
116+
'generic-abi-unstable', 'generic-hardening-mode-fast',
117+
'generic-hardening-mode-fast-with-abi-breaks', 'generic-hardening-mode-extensive',
118+
'generic-hardening-mode-debug',
119+
'generic-with_llvm_unwinder',
120+
'generic-static', 'generic-merged'
121+
'generic-modules-lsv', 'generic-no-tzdb']
122+
steps:
123+
- uses: actions/checkout@v4
124+
with:
125+
fetch-depth: 5
126+
- name: ${{ matrix.config }}
127+
run: libcxx/utils/ci/run-buildbot ${{ matrix.config }}
128+
env:
129+
CC: clang-18
130+
CXX: clang++-18
131+
- uses: actions/upload-artifact@v3
132+
if: always()
133+
with:
134+
name: ${{ matrix.config }}-results
135+
path: |
136+
"**/test-results.xml"
137+
"**/*.abilist"
138+

0 commit comments

Comments
 (0)