Skip to content

Commit

Permalink
CI: update
Browse files Browse the repository at this point in the history
  • Loading branch information
HiGarfield committed Jan 1, 2025
1 parent b330036 commit 70a4929
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ jobs:

- name: Compile and Test
run: |
git clone https://github.com/jvoisin/fortify-headers
if [[ "${{ matrix.os }}" == ubuntu-* ]]; then
export CFLAGS="$CFLAGS -I./fortify-headers -DFORTIFY_PEDANTIC_CHECKS -O3"
export LDFLAGS="$LDFLAGS -static"
else
export CFLAGS="$CFLAGS -I./fortify-headers -D_FORTIFY_SOURCE=3 -DFORTIFY_PEDANTIC_CHECKS -O3"
fi
make
make CHECK=1
sudo ./tests/process_iterator_test
random_file="$(mktemp $(printf 'X%.0s' $(seq 1 255)))"
cp ./tests/process_iterator_test ./tests/${random_file}
Expand Down Expand Up @@ -65,9 +69,11 @@ jobs:
release: ${{ matrix.osver }}
usesh: true
prepare: |
pkg install -y lang/gcc gmake sudo
pkg install -y lang/gcc gmake sudo git
run: |
gmake
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
sudo ./tests/process_iterator_test
random_file="$(mktemp $(printf 'X%.0s' $(seq 1 255)))"
cp ./tests/process_iterator_test ./tests/${random_file}
Expand Down

0 comments on commit 70a4929

Please sign in to comment.