From 37c45c5484e5ec488e32499cd4b18a3fe627c402 Mon Sep 17 00:00:00 2001 From: HiGarfield Date: Tue, 7 Jan 2025 18:41:06 +0800 Subject: [PATCH] CI: update --- .github/workflows/CI.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 9d49cfa..2532283 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -31,13 +31,12 @@ jobs: - name: Compile and Test run: | git clone https://github.com/jvoisin/fortify-headers + export CFLAGS="$CFLAGS -I../fortify-headers -D_FORTIFY_SOURCE=3 -DFORTIFY_PEDANTIC_CHECKS -O3" if [[ "${{ matrix.os }}" == ubuntu-* ]]; then - export CFLAGS="$CFLAGS -I./fortify-headers -DFORTIFY_PEDANTIC_CHECKS -O3" + export CC=gcc export LDFLAGS="$LDFLAGS -static" - else - export CFLAGS="$CFLAGS -I./fortify-headers -D_FORTIFY_SOURCE=3 -DFORTIFY_PEDANTIC_CHECKS -O3" fi - make CHECK=1 + make sudo ./tests/process_iterator_test random_file="$(mktemp $(printf 'X%.0s' $(seq 1 255)))" cp ./tests/process_iterator_test ./tests/${random_file} @@ -72,8 +71,8 @@ jobs: pkg install -y lang/gcc gmake sudo git run: | git clone https://github.com/jvoisin/fortify-headers - export CFLAGS="$CFLAGS -I./fortify-headers -D_FORTIFY_SOURCE=3 -DFORTIFY_PEDANTIC_CHECKS -O3" - gmake CHECK=1 + export CFLAGS="$CFLAGS -I../fortify-headers -D_FORTIFY_SOURCE=3 -DFORTIFY_PEDANTIC_CHECKS -O3" + gmake sudo ./tests/process_iterator_test random_file="$(mktemp $(printf 'X%.0s' $(seq 1 255)))" cp ./tests/process_iterator_test ./tests/${random_file}