Skip to content

Commit 35d5c2c

Browse files
Added C++17 and C++20 options to github actions pipeline
1 parent 9b62cf1 commit 35d5c2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/compile_and_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ jobs:
2828
echo github.event.action: ${{ github.event.action }}
2929
echo github.event_name: ${{ github.event_name }}
3030
- name: CMake Lib debug config C++17
31-
run: cmake -S . -B debug --std=c++17 -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_BUILD_TYPE=Debug
31+
run: cmake -S . -B debug -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_BUILD_TYPE=Debug
3232
- name: CMake Lib debug build
3333
run: cmake --build debug
3434
- name: Run tests
3535
run: debug/zip_in_cpp_tests
3636

3737
- name: CMake Lib debug config C++20
38-
run: cmake -S . -B debug --std=c++20 -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_BUILD_TYPE=Debug
38+
run: cmake -S . -B debug -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_BUILD_TYPE=Debug
3939
- name: CMake Lib debug build
4040
run: cmake --build debug
4141
- name: Run tests

0 commit comments

Comments
 (0)