summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2023-06-25 18:36:32 +0200
committerjvoisin2023-06-25 18:45:59 +0200
commit87cdb231528847386c8d5408e252f7afec52c6a6 (patch)
tree65efc02411b84d45c986e3407697868f3d250304
parent8848bca36ef19c15b071939e69bec77603d64ca1 (diff)
Run clang and gcc in the CI
-rw-r--r--.github/workflows/testsuite.yaml16
-rw-r--r--tests/Makefile2
2 files changed, 15 insertions, 3 deletions
diff --git a/.github/workflows/testsuite.yaml b/.github/workflows/testsuite.yaml
index 115b145..031b716 100644
--- a/.github/workflows/testsuite.yaml
+++ b/.github/workflows/testsuite.yaml
@@ -6,7 +6,7 @@ on:
6 - cron: '0 16 * * 5' 6 - cron: '0 16 * * 5'
7 7
8jobs: 8jobs:
9 ci: 9 gcc:
10 runs-on: ubuntu-latest 10 runs-on: ubuntu-latest
11 steps: 11 steps:
12 - name: Checking out the code 12 - name: Checking out the code
@@ -16,4 +16,16 @@ jobs:
16 - name: Extracting musl-based toolchain 16 - name: Extracting musl-based toolchain
17 run: tar xzf ./x86_64-linux-musl-native.tgz 17 run: tar xzf ./x86_64-linux-musl-native.tgz
18 - name: Running the testsuite 18 - name: Running the testsuite
19 run: make -C tests | grep -zqv FAIL 19 run: make -C tests gcc | grep -zqv FAIL
20
21 clang:
22 runs-on: ubuntu-latest
23 steps:
24 - name: Checking out the code
25 uses: actions/checkout@v3
26 - name: Downloading musl-based toolchain
27 run: wget https://musl.cc/x86_64-linux-musl-native.tgz
28 - name: Extracting musl-based toolchain
29 run: tar xzf ./x86_64-linux-musl-native.tgz
30 - name: Running the testsuite
31 run: make -C tests clang | grep -zqv FAIL
diff --git a/tests/Makefile b/tests/Makefile
index 48374bf..f6946f9 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -34,7 +34,7 @@ TARGETS= \
34 test_poll \ 34 test_poll \
35 test_ppoll \ 35 test_ppoll \
36 36
37#.SILENT: 37.SILENT:
38 38
39gcc: CC=../x86_64-linux-musl-native/bin/gcc 39gcc: CC=../x86_64-linux-musl-native/bin/gcc
40gcc: GCOV=../x86_64-linux-musl-native/bin/gcov 40gcc: GCOV=../x86_64-linux-musl-native/bin/gcov