diff options
| author | jvoisin | 2023-12-28 10:06:59 +0100 |
|---|---|---|
| committer | jvoisin | 2023-12-28 10:06:59 +0100 |
| commit | bcf82d51e6a5c3b3145afe8bacfa03b92d5b3f5d (patch) | |
| tree | f4218501c41541a4dfacd16848697685e359bcd2 /.github/workflows/testsuite.yaml | |
| parent | 8513fddefca4c6e3982718732afeec71bad4e688 (diff) | |
Build with USE_NATIVE_CHK for clang and gcc
Diffstat (limited to '.github/workflows/testsuite.yaml')
| -rw-r--r-- | .github/workflows/testsuite.yaml | 8 |
1 files changed, 5 insertions, 3 deletions
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: | |||
| 31 | run: | | 31 | run: | |
| 32 | sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.version }} 100 | 32 | sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.version }} 100 |
| 33 | sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.version }} 100 | 33 | sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.version }} 100 |
| 34 | - name: Build with native chk | ||
| 35 | if: ${{ matrix.use_native_chk == true }} | ||
| 36 | run: make CFLAGS=-DUSE_NATIVE_CHK -C tests gcc | ||
| 34 | - name: Build without native chk, and run the testsuite | 37 | - name: Build without native chk, and run the testsuite |
| 35 | if: ${{ matrix.use_native_chk == false }} | 38 | if: ${{ matrix.use_native_chk == false }} |
| 36 | shell: bash | 39 | shell: bash |
| 37 | run: make -C tests gcc run | 40 | run: make -C tests clean gcc run |
| 38 | 41 | ||
| 39 | clang: | 42 | clang: |
| 40 | runs-on: ubuntu-latest | 43 | runs-on: ubuntu-latest |
| @@ -63,9 +66,8 @@ jobs: | |||
| 63 | sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{ matrix.version }} 100 | 66 | sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{ matrix.version }} 100 |
| 64 | - name: Build with native chk | 67 | - name: Build with native chk |
| 65 | if: ${{ matrix.use_native_chk == true }} | 68 | if: ${{ matrix.use_native_chk == true }} |
| 66 | shell: bash | ||
| 67 | run: make CFLAGS=-DUSE_NATIVE_CHK -C tests clang | 69 | run: make CFLAGS=-DUSE_NATIVE_CHK -C tests clang |
| 68 | - name: Building and running without native chk | 70 | - name: Building and running without native chk |
| 69 | if: ${{ matrix.use_native_chk == false }} | 71 | if: ${{ matrix.use_native_chk == false }} |
| 70 | shell: bash | 72 | shell: bash |
| 71 | run: make -C tests clang run | 73 | run: make -C tests clean clang run |
