aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2025-02-18 23:07:10 +0100
committerRodrigo Arias Mallo <rodarima@gmail.com>2025-02-19 00:14:04 +0100
commitfbd719f93ab659fec6c42952e76f5e5b971728be (patch)
tree8ee46eedfee6bc6fd300566633bab40355f304c9
parent20ad6f765ed229411bb0b26c3cebcaa03346e739 (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.yml4
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