Skip to content

Commit

Permalink
CI: update
Browse files Browse the repository at this point in the history
  • Loading branch information
HiGarfield committed Jan 7, 2025
1 parent de293ea commit 37c45c5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 37c45c5

Please sign in to comment.