Skip to content

Commit

Permalink
ci: require C++11
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud committed Aug 4, 2024
1 parent e9efd73 commit fce0674
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
if [[ ${{matrix.build_type}} == "Debug" ]]; then
export CXXFLAGS=--coverage
fi
cmake -S . -B build_${{matrix.build_type}} -G Ninja
cmake -S . -B build_${{matrix.build_type}} -G Ninja \
-DCMAKE_CXX_STANDARD=11 \
-DCMAKE_CXX_STANDARD_REQUIRED=ON
- name: Build
run: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
shell: bash
run: |
cmake -S . -B build_${{matrix.build_type}}/ \
-G Ninja
-G Ninja \
-DCMAKE_CXX_STANDARD=11 \
-DCMAKE_CXX_STANDARD_REQUIRED=ON
- name: Build
shell: bash
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ jobs:
env:
CXX: ${{matrix.env}}-w64-mingw32-g++
run: |
cmake -S . -B build_${{matrix.build_type}}/ -G Ninja
cmake -S . -B build_${{matrix.build_type}}/ -G Ninja \
-DCMAKE_CXX_STANDARD=11 \
-DCMAKE_CXX_STANDARD_REQUIRED=ON
- name: Build MinGW
shell: msys2 {0}
Expand Down

0 comments on commit fce0674

Please sign in to comment.