-
Notifications
You must be signed in to change notification settings - Fork 70
72 lines (72 loc) · 1.73 KB
/
build.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: build
on: [ push, pull_request ]
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [ clang, gcc, gcc-9, gcc-10, gcc-11, gcc-12 ]
steps:
- name: Add repository
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
- name: Install packages
run: sudo apt install gettext gcc-9 gcc-10 gcc-11 gcc-12
- uses: actions/checkout@v2
- name: Autoconf
run: autoreconf -i -f
- name: Configure
run: ./configure
env:
CC: ${{ matrix.compiler }}
- name: Make
run: make
- name: Run tests
run: make check
- name: Generate corpus
run: make generate_corpus
macos:
runs-on: macos-latest
strategy:
matrix:
compiler: [ clang, gcc ]
steps:
- name: Install packages
run: brew install automake
- uses: actions/checkout@v2
- name: Autoconf
run: autoreconf -i -f
- name: Configure
run: ./configure
env:
CC: ${{ matrix.compiler }}
- name: Make
run: make
- name: Run tests
run: make check
- name: Generate corpus
run: make generate_corpus
windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
autotools
base-devel
gcc
libiconv-devel
- uses: actions/checkout@v2
- name: Autoconf
run: autoreconf -i -f
- name: Configure
run: ./configure
- name: Make
run: make
- name: Test
run: make check
- name: Log
run: cat ./test-suite.log