Skip to content

Commit 817121c

Browse files
committed
Add clang 17, clang 18, clang 19, gcc 14
clang 17 and above do not support coroutines in C++17 mode
1 parent 2743853 commit 817121c

1 file changed

Lines changed: 83 additions & 0 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,20 @@ jobs:
8989
cxx: "g++-13",
9090
cxxver: 20,
9191
}
92+
- {
93+
name: "Linux g++ 14 C++17",
94+
os: ubuntu-24.04,
95+
buildtype: Release,
96+
cxx: "g++-14",
97+
cxxver: 17,
98+
}
99+
- {
100+
name: "Linux g++ 14 C++20",
101+
os: ubuntu-24.04,
102+
buildtype: Release,
103+
cxx: "g++-14",
104+
cxxver: 20,
105+
}
92106
- {
93107
name: "Linux clang-10 C++17",
94108
os: ubuntu-20.04,
@@ -233,6 +247,33 @@ jobs:
233247
exe_linker_flags: -lc++,
234248
cxxver: 20,
235249
}
250+
- {
251+
name: "Linux clang-17 C++20",
252+
os: ubuntu-24.04,
253+
buildtype: Release,
254+
cxx: "clang++-17",
255+
cxx_flags: -stdlib=libc++,
256+
exe_linker_flags: -lc++,
257+
cxxver: 20,
258+
}
259+
- {
260+
name: "Linux clang-18 C++20",
261+
os: ubuntu-24.04,
262+
buildtype: Release,
263+
cxx: "clang++-18",
264+
cxx_flags: -stdlib=libc++,
265+
exe_linker_flags: -lc++,
266+
cxxver: 20,
267+
}
268+
- {
269+
name: "Linux clang-19 C++20",
270+
os: ubuntu-24.04,
271+
buildtype: Release,
272+
cxx: "clang++-19",
273+
cxx_flags: -stdlib=libc++,
274+
exe_linker_flags: -lc++,
275+
cxxver: 20,
276+
}
236277
- {
237278
name: "Windows MSVC 2017 (x64) C++17",
238279
os: windows-2019,
@@ -413,6 +454,39 @@ jobs:
413454
sudo ./llvm.sh 16
414455
sudo apt-get install libc++-16-dev libc++abi-16-dev libunwind-16-dev
415456
457+
- name: Install Clang 17
458+
id: install_clang_17
459+
if: startsWith(matrix.config.os, 'ubuntu') && ( matrix.config.cxx == 'clang++-17' )
460+
shell: bash
461+
working-directory: ${{ env.HOME }}
462+
run: |
463+
wget https://apt.llvm.org/llvm.sh
464+
chmod +x llvm.sh
465+
sudo ./llvm.sh 17
466+
sudo apt-get install libc++-17-dev libc++abi-17-dev libunwind-17-dev
467+
468+
- name: Install Clang 18
469+
id: install_clang_18
470+
if: startsWith(matrix.config.os, 'ubuntu') && ( matrix.config.cxx == 'clang++-18' )
471+
shell: bash
472+
working-directory: ${{ env.HOME }}
473+
run: |
474+
wget https://apt.llvm.org/llvm.sh
475+
chmod +x llvm.sh
476+
sudo ./llvm.sh 18
477+
sudo apt-get install libc++-18-dev libc++abi-18-dev libunwind-18-dev
478+
479+
- name: Install Clang 19
480+
id: install_clang_19
481+
if: startsWith(matrix.config.os, 'ubuntu') && ( matrix.config.cxx == 'clang++-19' )
482+
shell: bash
483+
working-directory: ${{ env.HOME }}
484+
run: |
485+
wget https://apt.llvm.org/llvm.sh
486+
chmod +x llvm.sh
487+
sudo ./llvm.sh 19
488+
sudo apt-get install libc++-19-dev libc++abi-19-dev libunwind-19-dev
489+
416490
- name: Install g++ 10
417491
id: install_gcc_10
418492
if: startsWith(matrix.config.os, 'ubuntu') && ( matrix.config.cxx == 'g++-10' )
@@ -448,6 +522,15 @@ jobs:
448522
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
449523
sudo apt-get install g++-13
450524
525+
- name: Install g++ 14
526+
id: install_gcc_14
527+
if: startsWith(matrix.config.os, 'ubuntu') && ( matrix.config.cxx == 'g++-14' )
528+
shell: bash
529+
working-directory: ${{ env.HOME }}
530+
run: |
531+
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
532+
sudo apt-get install g++-14
533+
451534
- name: Install MSVC 2017
452535
id: install_msvc_2017
453536
if: startsWith(matrix.config.os, 'windows-2019') && ( matrix.config.cxx == 'cl' ) && ( matrix.config.msvcver == 2017 )

0 commit comments

Comments
 (0)