-
Notifications
You must be signed in to change notification settings - Fork 79
106 lines (106 loc) · 2.87 KB
/
build.yml
File metadata and controls
106 lines (106 loc) · 2.87 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
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 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
id: make-check
run: make check
continue-on-error: true
- name: Upload test log
if: steps.make-check.outcome == 'failure'
uses: actions/upload-artifact@v4
with:
name: test-suite-log-linux-${{ matrix.compiler }}
path: test-suite.log
retention-days: 5
- name: Generate corpus
run: make generate_corpus
- name: Fail if tests failed
if: steps.make-check.outcome == 'failure'
run: exit 1
macos:
runs-on: macos-latest
strategy:
matrix:
compiler: [ clang, gcc ]
steps:
- name: Install packages
run: brew install automake libtool
- 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
id: make-check
run: make check
continue-on-error: true
- name: Upload test log
if: steps.make-check.outcome == 'failure'
uses: actions/upload-artifact@v4
with:
name: test-suite-log-macos-${{ matrix.compiler }}
path: test-suite.log
retention-days: 5
- name: Generate corpus
run: make generate_corpus
- name: Fail if tests failed
if: steps.make-check.outcome == 'failure'
run: exit 1
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
id: make-check
run: make check
continue-on-error: true
- name: Upload test log
if: steps.make-check.outcome == 'failure'
uses: actions/upload-artifact@v4
with:
name: test-suite-log-windows
path: test-suite.log
retention-days: 5
- name: Fail if tests failed
if: steps.make-check.outcome == 'failure'
run: exit 1