-
Notifications
You must be signed in to change notification settings - Fork 211
175 lines (167 loc) · 5.38 KB
/
osx.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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
name: osx
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_osx_autotools_default_args:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
# Brew may not have permission to install its packages
- name: change brew install folder permissions
run: sudo chmod -R a+rwx /usr/local/share/ || mkdir -p /usr/local/share/ -m a+rwx
- name: install maxtex
run: brew cask install mactex
- name: install doc programs
run: brew install texi2html doxygen
- name: install automake
run: brew install automake
- name: install pkg-config
run: brew install pkgconfig
- name: create configure
run: autoreconf -i
- name: configure
run: ./configure --disable-timeout-tests
- name: make
run: make
- name: make check
run: make check
- name: make install
run: sudo make install
build_osx_autotools_other_args:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
# Brew may not have permission to install its packages
- name: change brew install folder permissions
run: sudo chmod -R a+rwx /usr/local/share/ || mkdir -p /usr/local/share/ -m a+rwx
- name: install maxtex
run: brew cask install mactex
- name: install doc programs
run: brew install texi2html doxygen
- name: install automake
run: brew install automake
- name: install pkg-config
run: brew install pkgconfig
- name: create configure
run: autoreconf -i
- name: configure with args
run: ./configure --disable-fork --disable-subunit --enable-snprintf-replacement --enable-timer-replacement --disable-timeout-tests
- name: make
run: make
- name: make check
run: make check
- name: make install
run: sudo make install
build_osx_autotools_gcc:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
# Brew may not have permission to install its packages
- name: change brew install folder permissions
run: sudo chmod -R a+rwx /usr/local/share/ || mkdir -p /usr/local/share/ -m a+rwx
- name: install automake
run: brew install automake
- name: install pkg-config
run: brew install pkgconfig
- name: create configure
run: autoreconf -i
- name: configure gcc
run: ./configure CC=gcc --enable-snprintf-replacement --enable-timer-replacement --disable-build-docs --disable-timeout-tests
- name: make
run: make
- name: make check
run: make check
build_osx_autotools_clang:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
# Brew may not have permission to install its packages
- name: change brew install folder permissions
run: sudo chmod -R a+rwx /usr/local/share/ || mkdir -p /usr/local/share/ -m a+rwx
- name: install automake
run: brew install automake
- name: install pkg-config
run: brew install pkgconfig
- name: create configure
run: autoreconf -i
- name: configure clang
run: ./configure CC=clang --enable-snprintf-replacement --enable-timer-replacement --disable-build-docs --disable-timeout-tests
- name: make
run: make
- name: make check
run: make check
build_osx_autotools_docs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
# Brew may not have permission to install its packages
- name: change brew install folder permissions
run: sudo chmod -R a+rwx /usr/local/share/ || mkdir -p /usr/local/share/ -m a+rwx
- name: install maxtex
run: brew cask install mactex
- name: install doc programs
run: brew install texi2html doxygen
- name: install automake
run: brew install automake
- name: install pkg-config
run: brew install pkgconfig
- name: create configure
run: autoreconf -i
- name: configure
run: ./configure
- name: make docs
run: make doc/check_html
- name: make doxygen
run: make doc/doxygen
build_osx_autotools_example:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
# Brew may not have permission to install its packages
- name: change brew install folder permissions
run: sudo chmod -R a+rwx /usr/local/share/ || mkdir -p /usr/local/share/ -m a+rwx
- name: install maxtex
run: brew cask install mactex
- name: install doc programs
run: brew install texi2html doxygen
- name: install automake
run: brew install automake
- name: install pkg-config
run: brew install pkgconfig
- name: create configure
run: autoreconf -i
- name: configure
run: ./configure
- name: make
run: make
- name: make install
run: sudo make install
- name: create configure example
working-directory: doc/example
run: autoreconf -i
- name: configure example
working-directory: doc/example
run: ./configure
- name: build example
working-directory: doc/example
run: make
- name: test example
working-directory: doc/example
run: make check
build_osx_cmake:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: cmake cversion
run: cmake --version
- name: create configs
run: cmake . -D CHECK_ENABLE_TIMEOUT_TESTS=0
- name: make
run: make
- name: unit tests
run: ctest -V
- name: make install
run: sudo make install