From bcf82d51e6a5c3b3145afe8bacfa03b92d5b3f5d Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 28 Dec 2023 10:06:59 +0100 Subject: Build with USE_NATIVE_CHK for clang and gcc --- .github/workflows/testsuite.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/testsuite.yaml b/.github/workflows/testsuite.yaml index 87cd035..00f8565 100644 --- a/.github/workflows/testsuite.yaml +++ b/.github/workflows/testsuite.yaml @@ -31,10 +31,13 @@ jobs: run: | sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.version }} 100 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.version }} 100 + - name: Build with native chk + if: ${{ matrix.use_native_chk == true }} + run: make CFLAGS=-DUSE_NATIVE_CHK -C tests gcc - name: Build without native chk, and run the testsuite if: ${{ matrix.use_native_chk == false }} shell: bash - run: make -C tests gcc run + run: make -C tests clean gcc run clang: runs-on: ubuntu-latest @@ -63,9 +66,8 @@ jobs: sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{ matrix.version }} 100 - name: Build with native chk if: ${{ matrix.use_native_chk == true }} - shell: bash run: make CFLAGS=-DUSE_NATIVE_CHK -C tests clang - name: Building and running without native chk if: ${{ matrix.use_native_chk == false }} shell: bash - run: make -C tests clang run + run: make -C tests clean clang run -- cgit v1.3