aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2023-01-02 10:15:43 +0100
committerMichael Stapelberg <stapelberg@users.noreply.github.com>2023-01-02 11:36:37 +0100
commitd06e87eb8d9cfa863510d05280fa3a41b8c68205 (patch)
tree217cab573419d8ea86a052bd01c4c4987570db13
parent3e184daf291a5938b60b4a871ecfdfff41857d24 (diff)
downloadi3-d06e87eb8d9cfa863510d05280fa3a41b8c68205.tar.gz
i3-d06e87eb8d9cfa863510d05280fa3a41b8c68205.zip
GitHub Actions: build with -D_FORTIFY_SOURCE=2
This requires --buildtype=debugoptimized (or --buildtype=release, but optimizations need to be enabled), and will allow us to keep the i3 build free of warnings during development. Distributions like Debian build with -D_FORTIFY_SOURCE=2.
-rw-r--r--.github/workflows/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 5e460a63..fe8e506b 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -47,7 +47,7 @@ jobs:
echo "::endgroup::"
- name: build i3
run: |
- docker run -v $PWD:/usr/src/i3/ -w /usr/src/i3 -e CC ${{ env.BASENAME }} /bin/sh -c 'rm -rf build; mkdir -p build && cd build && CFLAGS="-Wformat -Wformat-security -Wextra -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Werror -fno-common" meson .. -Ddocs=true -Dmans=true -Db_sanitize=address && ninja -v'
+ docker run -v $PWD:/usr/src/i3/ -w /usr/src/i3 -e CC ${{ env.BASENAME }} /bin/sh -c 'rm -rf build; mkdir -p build && cd build && CFLAGS="-Wformat -Wformat-security -Wextra -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Werror -fno-common -D_FORTIFY_SOURCE=2" meson .. -Ddocs=true -Dmans=true -Db_sanitize=address --buildtype=debugoptimized && ninja -v'
- name: check spelling
run: |
docker run -v $PWD:/usr/src/i3/ -w /usr/src/i3 ${{ env.BASENAME }} ./travis/check-spelling.pl