diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-02-18 23:07:10 +0100 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-02-19 00:14:04 +0100 |
commit | fbd719f93ab659fec6c42952e76f5e5b971728be (patch) | |
tree | 8ee46eedfee6bc6fd300566633bab40355f304c9 | |
parent | 20ad6f765ed229411bb0b26c3cebcaa03346e739 (diff) |
Add -std=c++11 to CI build pipeline
Ensure that we don't accidentally add newer features by building with
-std=c++11 only on the CI build.
-rw-r--r-- | .github/workflows/build.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37221fb1..4c9e4522 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -130,7 +130,9 @@ jobs: - name: autogen run: ./autogen.sh - name: configure - run: ./configure --disable-mbedtls CFLAGS="-Werror" CXXFLAGS="-Werror" + # Make sure we build with the C++11 standard, so we fail to build on newer + # features. + run: ./configure --disable-mbedtls CFLAGS="-Werror" CXXFLAGS="-Werror -std=c++11" - name: make run: make - name: make check |