From 88448a78924ebe806f8a26bca821298fc6670d21 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 14 Aug 2023 16:30:36 +0930 Subject: [PATCH] CI: add -O3 to one of the builds, to test for errors. Signed-off-by: Rusty Russell --- .github/workflows/ci.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7e2d20e06..d8ca48ae6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -80,6 +80,7 @@ jobs: DEVELOPER: 0 VALGRIND: 1 COMPILER: gcc + COPTFLAGS_VAR: COPTFLAGS="-O3 -Werror" # While we're at it let's try to compile with clang - CFG: clang-dev1 DEVELOPER: 1 @@ -118,7 +119,7 @@ jobs: pip3 install --user pip wheel poetry poetry export -o requirements.txt --with dev --without-hashes python3 -m pip install -r requirements.txt - ./configure --enable-debugbuild CC="$COMPILER" + ./configure --enable-debugbuild CC="$COMPILER" ${{ matrix.COPTFLAGS_VAR }} make -j $(nproc) testpack.tar.bz2