-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (40 loc) · 1.29 KB
/
testsuite.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Test suite
on:
pull_request:
push:
schedule:
- cron: '0 16 * * 5'
jobs:
gcc:
runs-on: ubuntu-latest
steps:
- name: Checking out the code
uses: actions/checkout@v3
- name: Cache musl toolchain
uses: actions/cache@v3
id: cache-musl
with:
path: x86_64-linux-musl-native
key: musl
- name: Downloading musl-based toolchain
if: steps.cache-musl.outputs.cache-hit != 'true'
run: wget --quiet https://musl.cc/x86_64-linux-musl-native.tgz
- name: Extracting musl-based toolchain
if: steps.cache-musl.outputs.cache-hit != 'true'
run: tar xzf ./x86_64-linux-musl-native.tgz
- name: Running the testsuite
run: make -C tests gcc | grep -zqv FAIL
clang:
runs-on: ubuntu-latest
strategy:
matrix:
version: [12, 13, 14]
steps:
- name: Checking out the code
uses: actions/checkout@v3
- name: Setting up clang version
run: |
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${{ matrix.version }} 100
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{ matrix.version }} 100
- name: Running the testsuite
run: make -C tests clang | grep -zqv FAIL