@@ -19,13 +19,23 @@ jobs:
19
19
include :
20
20
- os : ubuntu-24.04
21
21
ccache-variant : sccache
22
- c_compiler : clang-20
23
- cpp_compiler : clang++-20
22
+ c_compiler : clang-21
23
+ cpp_compiler : clang++-21
24
+ target : x86_64-unknown-linux-llvm
25
+ include_scudo : ON
24
26
# TODO: remove ccache logic when https://github.com/hendrikmuhs/ccache-action/issues/279 is resolved.
25
27
- os : ubuntu-24.04-arm
26
28
ccache-variant : ccache
27
- c_compiler : clang-20
28
- cpp_compiler : clang++-20
29
+ c_compiler : clang-21
30
+ cpp_compiler : clang++-21
31
+ target : aarch64-unknown-linux-llvm
32
+ include_scudo : ON
33
+ - os : ubuntu-24.04
34
+ ccache-variant : ccache
35
+ c_compiler : clang-21
36
+ cpp_compiler : clang++-21
37
+ target : x86_64-unknown-uefi-llvm
38
+ include_scudo : OFF
29
39
# TODO: add back gcc build when it is fixed
30
40
# - c_compiler: gcc
31
41
# cpp_compiler: g++
53
63
run : |
54
64
wget https://apt.llvm.org/llvm.sh
55
65
chmod +x llvm.sh
56
- sudo ./llvm.sh 20
66
+ sudo ./llvm.sh 21
57
67
sudo apt-get update
58
68
sudo apt-get install -y libmpfr-dev libgmp-dev libmpc-dev ninja-build linux-libc-dev
59
69
sudo ln -sf /usr/include/$(uname -p)-linux-gnu/asm /usr/include/asm
@@ -68,22 +78,31 @@ jobs:
68
78
# Configure libc fullbuild with scudo.
69
79
# Use MinSizeRel to reduce the size of the build.
70
80
- name : Configure CMake
71
- run : >
72
- cmake -B ${{ steps.strings.outputs.build-output-dir }}
73
- -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
74
- -DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
75
- -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
76
- -DCMAKE_C_COMPILER_LAUNCHER=${{ matrix.ccache-variant }}
77
- -DCMAKE_CXX_COMPILER_LAUNCHER=${{ matrix.ccache-variant }}
78
- -DCMAKE_INSTALL_PREFIX=${{ steps.strings.outputs.build-install-dir }}
79
- -DLLVM_ENABLE_RUNTIMES="libc;compiler-rt"
80
- -DLLVM_LIBC_FULL_BUILD=ON
81
- -DLLVM_LIBC_INCLUDE_SCUDO=ON
82
- -DCOMPILER_RT_BUILD_SCUDO_STANDALONE_WITH_LLVM_LIBC=ON
83
- -DCOMPILER_RT_BUILD_GWP_ASAN=OFF
84
- -DCOMPILER_RT_SCUDO_STANDALONE_BUILD_SHARED=OFF
85
- -G Ninja
86
- -S ${{ github.workspace }}/runtimes
81
+ run : |
82
+ export RUNTIMES="libc"
83
+
84
+ if [[ ${{ matrix.include_scudo}} == "ON" ]]; then
85
+ export RUNTIMES="$RUNTIMES;compiler-rt"
86
+ export CMAKE_FLAGS="
87
+ -DLLVM_LIBC_INCLUDE_SCUDO=ON
88
+ -DCOMPILER_RT_BUILD_SCUDO_STANDALONE_WITH_LLVM_LIBC=ON
89
+ -DCOMPILER_RT_BUILD_GWP_ASAN=OFF
90
+ -DCOMPILER_RT_SCUDO_STANDALONE_BUILD_SHARED=OFF"
91
+ fi
92
+
93
+ cmake -B ${{ steps.strings.outputs.build-output-dir }} \
94
+ -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} \
95
+ -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \
96
+ -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
97
+ -DCMAKE_C_COMPILER_LAUNCHER=${{ matrix.ccache-variant }} \
98
+ -DCMAKE_CXX_COMPILER_LAUNCHER=${{ matrix.ccache-variant }} \
99
+ -DCMAKE_INSTALL_PREFIX=${{ steps.strings.outputs.build-install-dir }} \
100
+ -DLLVM_RUNTIMES_TARGET=${{ matrix.target }} \
101
+ -DLLVM_ENABLE_RUNTIMES="$RUNTIMES" \
102
+ -DLLVM_LIBC_FULL_BUILD=ON \
103
+ -G Ninja \
104
+ -S ${{ github.workspace }}/runtimes \
105
+ $CMAKE_FLAGS
87
106
88
107
- name : Build
89
108
run : >
93
112
--target install
94
113
95
114
- name : Test
115
+ # Skip UEFI tests until we have testing set up.
116
+ if : ${{ ! endsWith(matrix.target, '-uefi-llvm') }}
96
117
run : >
97
118
cmake
98
119
--build ${{ steps.strings.outputs.build-output-dir }}
0 commit comments