summaryrefslogtreecommitdiff
path: root/.github/workflows/testsuite.yaml
diff options
context:
space:
mode:
authorjvoisin2023-09-27 21:52:06 +0200
committerjvoisin2023-09-27 23:00:20 +0200
commit2ccfced2116d00e6ddf3aa6f10cfacab5a863c76 (patch)
tree31262a2870dedeaac1170deacb043b02011bc44c /.github/workflows/testsuite.yaml
parent75b95fa25df74fcd0498bf59e3524f20f594755d (diff)
Add an option to make use of compiler-provided _chk builtins
Diffstat (limited to '.github/workflows/testsuite.yaml')
-rw-r--r--.github/workflows/testsuite.yaml27
1 files changed, 15 insertions, 12 deletions
diff --git a/.github/workflows/testsuite.yaml b/.github/workflows/testsuite.yaml
index 83c9ca4..73af29f 100644
--- a/.github/workflows/testsuite.yaml
+++ b/.github/workflows/testsuite.yaml
@@ -11,6 +11,7 @@ jobs:
11 strategy: 11 strategy:
12 matrix: 12 matrix:
13 version: [9, 10, 11, 12] 13 version: [9, 10, 11, 12]
14 use_native_chk: [true, false]
14 steps: 15 steps:
15 - name: Checking out the code 16 - name: Checking out the code
16 uses: actions/checkout@v3 17 uses: actions/checkout@v3
@@ -30,18 +31,21 @@ jobs:
30 run: | 31 run: |
31 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
32 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
33 - name: Build 34 - name: Build with native chk
35 if: ${{ matrix.use_native_chk == true }}
34 shell: bash 36 shell: bash
35 run: make -C tests gcc 37 run: make CFLAGS=-DUSE_NATIVE_CHK -C tests gcc
36 - name: Running the testsuite 38 - name: Build without native chk, and run the testsuite
39 if: ${{ matrix.use_native_chk == false }}
37 shell: bash 40 shell: bash
38 run: make -C tests run 41 run: make -C tests gcc run
39 42
40 clang: 43 clang:
41 runs-on: ubuntu-latest 44 runs-on: ubuntu-latest
42 strategy: 45 strategy:
43 matrix: 46 matrix:
44 version: [12, 13, 14, 15] 47 version: [13, 14, 15]
48 use_native_chk: [true, false]
45 steps: 49 steps:
46 - name: Checking out the code 50 - name: Checking out the code
47 uses: actions/checkout@v3 51 uses: actions/checkout@v3
@@ -61,12 +65,11 @@ jobs:
61 run: | 65 run: |
62 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
63 sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{ matrix.version }} 100 67 sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{ matrix.version }} 100
64 - name: Build 68 - name: Build with native chk
69 if: ${{ matrix.use_native_chk == true }}
65 shell: bash 70 shell: bash
66 run: make -C tests clang 71 run: make CFLAGS=-DUSE_NATIVE_CHK -C tests clang
67 - name: Running the compile-time testsuite 72 - name: Building and running without native chk
73 if: ${{ matrix.use_native_chk == false }}
68 shell: bash 74 shell: bash
69 run: make -C tests clang 75 run: make -C tests clang run
70 - name: Running the run-time testsuite
71 shell: bash
72 run: make -C tests run