diff options
author | Nicolas Williams <nico@cryptonector.com> | 2023-07-31 17:30:35 -0500 |
---|---|---|
committer | Nico Williams <nico@cryptonector.com> | 2023-08-02 12:19:19 -0500 |
commit | ff4bf68b29a4bf75387bc1918e49937758509e78 (patch) | |
tree | a085a715dbdfbe1181857f7aa3f7bf3aaf596227 /.github | |
parent | fd0d475694bdaf5261340aff9a6a4437b04124dc (diff) |
Enable stack protection (CI release executables)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e1461a60..2975bff7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,7 +92,8 @@ jobs: --disable-valgrind \ --with-oniguruma=builtin \ --enable-static \ - --enable-all-static + --enable-all-static \ + CFLAGS="-O2 -pthread -fstack-protector-all" make -j"$(nproc)" file ./jq cp ./jq jq-${{ env.SUFFIX }} @@ -157,7 +158,8 @@ jobs: --disable-valgrind \ --with-oniguruma=builtin \ --enable-static \ - --enable-all-static + --enable-all-static \ + CFLAGS="-O2 -pthread -fstack-protector-all" make -j"$(nproc)" strip ./jq file ./jq @@ -234,7 +236,8 @@ jobs: --with-oniguruma=builtin \ --disable-shared \ --enable-static \ - --enable-all-static + --enable-all-static \ + CFLAGS="-O2 -pthread -fstack-protector-all" make -j$(nproc) file ./jq.exe cp ./jq.exe jq-${{ env.SUFFIX }}.exe |