14
14
CMAKE_GENERATOR : Ninja
15
15
DEFAULT_CXX_STANDARD : 20
16
16
DEFAULT_LLVM_VERSION : 18
17
- DEFAULT_GCC_VERSION : 12
17
+ DEFAULT_GCC_VERSION : 13
18
18
19
19
concurrency :
20
20
group : ${{ github.head_ref || github.run_id }}
@@ -226,9 +226,9 @@ jobs:
226
226
install : wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 18
227
227
toolchain_root : " /usr/lib/llvm-18"
228
228
- compiler : gcc
229
- cc : " gcc-12 "
230
- cxx : " g++-12 "
231
- install : sudo apt update && sudo apt install -y gcc-12
229
+ cc : " gcc-13 "
230
+ cxx : " g++-13 "
231
+ install : sudo add- apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt update && sudo apt install -y gcc-13 g++-13
232
232
toolchain_root : " /usr"
233
233
234
234
steps :
@@ -266,6 +266,13 @@ jobs:
266
266
path : ~/cpm-cache
267
267
key : ${{runner.os}}-${{env.cache-name}}-${{ hashFiles('**/CMakeLists.txt', 'cmake/**') }}
268
268
269
+ # https://github.com/actions/runner-images/issues/9524
270
+ - name : Fix kernel mmap rnd bits
271
+ # Asan in llvm 14 provided in ubuntu 22.04 is incompatible with
272
+ # high-entropy ASLR in much newer kernels that GitHub runners are
273
+ # using leading to random crashes: https://reviews.llvm.org/D148280
274
+ run : sudo sysctl vm.mmap_rnd_bits=28
275
+
269
276
- name : Build Unit Tests
270
277
run : cmake --build ${{github.workspace}}/build -t unit_tests
271
278
@@ -275,7 +282,9 @@ jobs:
275
282
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
276
283
277
284
- name : Install build tools
278
- run : sudo apt update && sudo apt install -y gcc-${{env.DEFAULT_GCC_VERSION}} ninja-build valgrind
285
+ run : |
286
+ sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
287
+ sudo apt update && sudo apt install -y gcc-${{env.DEFAULT_GCC_VERSION}} g++-${{env.DEFAULT_GCC_VERSION}} ninja-build valgrind
279
288
280
289
- name : Restore CPM cache
281
290
env :
0 commit comments