Skip to content

Commit 8927925

Browse files
committed
build all code with all available C++ standards
1 parent a45afce commit 8927925

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

.github/workflows/CI-unixish.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,20 @@ jobs:
7171
run: |
7272
make -j$(nproc) selfcheck
7373
74-
- name: make testrunner (c++17)
74+
- name: make (c++17)
7575
run: |
7676
make clean
77-
make -j$(nproc) testrunner CXXOPTS="-std=c++17"
77+
make -j$(nproc) CXXOPTS="-std=c++17"
7878
79-
- name: make testrunner (c++20)
79+
- name: make (c++20)
8080
run: |
8181
make clean
82-
make -j$(nproc) testrunner CXXOPTS="-std=c++20"
82+
make -j$(nproc) CXXOPTS="-std=c++20"
83+
84+
- name: make (c++23)
85+
run: |
86+
make clean
87+
make -j$(nproc) CXXOPTS="-std=c++23"
8388
8489
- name: Run CMake
8590
run: |

.github/workflows/CI-windows.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,20 @@ jobs:
6363
run: |
6464
set SIMPLECPP_EXE_PATH=.\${{ matrix.config }}\simplecpp.exe
6565
python -m pytest integration_test.py -vv || exit /b !errorlevel!
66-
66+
67+
- name: Run CMake (c++17)
68+
run: |
69+
cmake -S . -B build.cxx17 -G "Visual Studio 17 2022" -A x64 -Werror=dev --warn-uninitialized -DCMAKE_CXX_STANDARD=20 -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
70+
71+
- name: Build (c++17)
72+
run: |
73+
msbuild -m build.cxx17\simplecpp.sln /p:Configuration=${{ matrix.config }} /p:Platform=x64 || exit /b !errorlevel!
74+
75+
- name: Run CMake (c++20)
76+
run: |
77+
cmake -S . -B build.cxx20 -G "Visual Studio 17 2022" -A x64 -Werror=dev --warn-uninitialized -DCMAKE_CXX_STANDARD=20 -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
78+
79+
- name: Build (c++20)
80+
run: |
81+
msbuild -m build.cxx20\simplecpp.sln /p:Configuration=${{ matrix.config }} /p:Platform=x64 || exit /b !errorlevel!
82+

0 commit comments

Comments
 (0)