Skip to content

Commit c0aceb5

Browse files
committed
github: update compiler toolchains
Switch to the recently released Ubuntu 26.04 (in a container, as github doesn't support it directly yet), Clang 22, and (still unreleased) gcc 16. This lets us test with modern toolchains and sets the stage for bumping the standard to C++26.
1 parent ac56d39 commit c0aceb5

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/test.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
test:
4444
timeout-minutes: 60
4545
runs-on: ubuntu-24.04
46+
container:
47+
image: docker.io/ubuntu:26.04
4648
steps:
4749
- uses: actions/checkout@v4
4850
with:
@@ -58,17 +60,17 @@ jobs:
5860
- name: Install clang++
5961
if: ${{ inputs.compiler == 'clang++' }}
6062
run: |
61-
sudo apt-get -y install clang-20
63+
sudo apt-get -y install clang-22
6264
6365
- name: Install clang-scan-deps
6466
if: ${{ contains(inputs.enables, 'cxx-modules') }}
6567
run: |
66-
sudo apt-get -y install clang-tools-20
68+
sudo apt-get -y install clang-tools-22
6769
6870
- name: Install g++
6971
if: ${{ inputs.compiler == 'g++' }}
7072
run: |
71-
sudo apt-get -y install gcc-14 g++-14
73+
sudo apt-get -y install gcc-16 g++-16
7274
7375
- name: Install ccache
7476
if: ${{ inputs.enable-ccache }}
@@ -84,11 +86,11 @@ jobs:
8486
- name: Configure
8587
run: |
8688
if [ ${{ inputs.compiler }} = "clang++" ]; then
87-
CC=clang-20
88-
CPP=clang++-20
89+
CC=clang-22
90+
CPP=clang++-22
8991
else
90-
CC=gcc-14
91-
CPP=g++-14
92+
CC=gcc-16
93+
CPP=g++-16
9294
fi
9395
if ${{ inputs.enable-ccache }}; then
9496
MAYBE_CCACHE_OPT="--compiler-cache=ccache"

0 commit comments

Comments
 (0)