summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/testsuite.yaml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/testsuite.yaml b/.github/workflows/testsuite.yaml
index b84998a..b022fb2 100644
--- a/.github/workflows/testsuite.yaml
+++ b/.github/workflows/testsuite.yaml
@@ -78,3 +78,30 @@ jobs:
78 run: | 78 run: |
79 make -C tests clean clang run > ./results.txt 79 make -C tests clean clang run > ./results.txt
80 grep -zvq 'FAIL' ./results.txt 80 grep -zvq 'FAIL' ./results.txt
81
82 c_versions:
83 runs-on: ubuntu-latest
84 strategy:
85 matrix:
86 version: ["c89", "c99", "c11", "c17"]
87 steps:
88 - name: Checking out the code
89 uses: actions/checkout@v3
90 - name: Cache musl toolchain
91 uses: actions/cache@v3
92 id: cache-musl
93 with:
94 path: x86_64-linux-musl-native
95 key: musl
96 - name: Downloading musl-based toolchain
97 if: steps.cache-musl.outputs.cache-hit != 'true'
98 run: wget --quiet https://musl.cc/x86_64-linux-musl-native.tgz
99 - name: Extracting musl-based toolchain
100 if: steps.cache-musl.outputs.cache-hit != 'true'
101 run: tar xzf ./x86_64-linux-musl-native.tgz
102 - name: Building with clang
103 shell: bash
104 run: make CFLAGS=-std=${{ matrix.version }} -C tests clean clang
105 - name: Building with gcc
106 shell: bash
107 run: make CFLAGS=-std=${{ matrix.version }} -C tests clean gcc