-
Notifications
You must be signed in to change notification settings - Fork 52
55 lines (51 loc) · 996 Bytes
/
CI.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
whitespace:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: cleanup
run: |
maint/code-cleanup.sh --all --recursive
git --no-pager diff
if [ x"$(git --no-pager diff)" != x ]; then
exit 1
fi
build-basic:
runs-on: ubuntu-latest
timeout-minutes: 20
env:
CFLAGS: "-std=gnu90 -Werror -Wextra"
steps:
- uses: actions/checkout@v2
- name: autogen
run: |
./autogen.sh
- name: configure
run: |
./configure
- name: make
run: |
make -j 2
cd test
make -j 2
cd ../examples
make -j 2
cd ../
- name: run_test
run: |
cd test
make check -j 2
cd ../
- name: run_examples
run: |
cd examples
make check -j 2
cd ../