Skip to content

Commit 9c7d5d2

Browse files
authored
Bump c++ versions
* Update cpp.yml * Update cpp.yml * Update cpp.yml * Update cpp.yml * Update cpp.yml * Update cpp.yml * Update cpp.yml * Update cpp.yml * Update cpp.yml * Update cpp.yml
1 parent 8739a05 commit 9c7d5d2

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/cpp.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ jobs:
99
matrix:
1010
config:
1111
- {compiler-options: "-Wall -Wextra -std=c++20"}
12-
- {compiler-options: "-Wall -Wextra -Wno-sign-compare -std=c++23"}
13-
- {compiler-options: "-fanalyzer -Wno-analyzer-null-dereference -std=c++23"}
12+
- {compiler-options: "-Wall -Wextra -std=c++23"}
13+
- {compiler-options: "-Wall -Wextra -Wno-sign-compare -std=c++26"}
14+
- {compiler-options: "-fanalyzer -Wno-analyzer-null-dereference -std=c++26"}
1415
steps:
1516
- uses: actions/checkout@v2
16-
# - name: install g++
17-
# run: |
18-
# sudo add-apt-repository ppa:ubuntu-toolchain-r/test
19-
# sudo apt-get install g++-14
17+
# - name: install g++
18+
# run: |
19+
# sudo add-apt-repository ppa:ubuntu-toolchain-r/test
20+
# sudo apt update
21+
# sudo apt-get install g++-14
2022
- name: compile
2123
run: |
2224
cd cpp
@@ -31,12 +33,12 @@ jobs:
3133
wget http://mirrors.kernel.org/ubuntu/pool/main/libf/libffi/libffi7_3.3-4_amd64.deb
3234
sudo dpkg -i libffi7_3.3-4_amd64.deb
3335
sudo apt-key adv --fetch-keys https://apt.llvm.org/llvm-snapshot.gpg.key
34-
sudo add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-19 main"
35-
sudo apt-get install clang-19
36+
sudo add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-20 main"
37+
sudo apt-get install clang-20
3638
- name: compile
3739
run: |
3840
cd cpp
39-
find . -name '*.cpp' -print0 | xargs -n1 -0 clang++-19 -Wall -Wextra -std=c++23
41+
find . -name '*.cpp' -print0 | xargs -n1 -0 clang++-20 -Wall -Wextra -std=c++26
4042
4143
build-macos-clang:
4244
runs-on: macos-latest

0 commit comments

Comments
 (0)