@@ -24,12 +24,13 @@ jobs:
24
24
25
25
# By default, the name of the build is the language used and SWIG options, but matrix entries
26
26
# can define the additional "desc" field with any additional information to include in the name.
27
- name : ${{ matrix.SWIGLANG || 'none' }}${{ matrix.PY3 }} ${{ matrix.ENGINE}} ${{ matrix.VER }} ${{ matrix.SWIG_FEATURES }} ${{ (matrix.compiler || 'gcc') }}${{ matrix.GCC }} ${{ matrix.CPPSTD }} ${{ matrix.CSTD }} ${{ matrix.desc }} ${{ matrix.continue-on-error && '(can fail)' }}
27
+ name : ${{ matrix.SWIGLANG || 'none' }}${{ matrix.PY2 }} ${{ matrix.ENGINE}} ${{ matrix.VER }} ${{ matrix.SWIG_FEATURES }} ${{ (matrix.compiler || 'gcc') }}${{ matrix.GCC }} ${{ matrix.CPPSTD }} ${{ matrix.CSTD }} ${{ matrix.desc }} ${{ matrix.continue-on-error && '(can fail)' }}
28
28
29
29
strategy :
30
30
matrix :
31
31
include :
32
32
- SWIGLANG : " "
33
+ CPPFLAGS : " -DDOH_POISON"
33
34
- SWIGLANG : " "
34
35
GCC : 7
35
36
- SWIGLANG : " "
64
65
VER : ' 1.17'
65
66
- SWIGLANG : guile
66
67
- SWIGLANG : java
68
+ - SWIGLANG : javascript
69
+ ENGINE : node
70
+ VER : ' 6'
71
+ CPPSTD : c++11
72
+ os : ubuntu-18.04
73
+ - SWIGLANG : javascript
74
+ ENGINE : node
75
+ VER : ' 8'
76
+ CPPSTD : c++11
77
+ os : ubuntu-18.04
78
+ - SWIGLANG : javascript
79
+ ENGINE : node
80
+ VER : ' 10'
81
+ CPPSTD : c++11
82
+ os : ubuntu-18.04
67
83
- SWIGLANG : javascript
68
84
ENGINE : node
69
85
VER : ' 12'
@@ -74,58 +90,60 @@ jobs:
74
90
CPPSTD : c++14
75
91
- SWIGLANG : javascript
76
92
ENGINE : jsc
77
- - SWIGLANG : javascript
78
- ENGINE : v8
79
- os : ubuntu-18.04 # libv8-dev only actually provides v8 in 18.04.
80
93
- SWIGLANG : lua
81
94
- SWIGLANG : lua
82
95
VER : ' 5.3'
83
96
- SWIGLANG : octave
84
97
CPPSTD : c++11
98
+ - SWIGLANG : octave
99
+ CPPSTD : c++11
85
100
- SWIGLANG : perl5
101
+ - SWIGLANG : php
102
+ VER : ' 7.0'
103
+ - SWIGLANG : php
104
+ VER : ' 7.1'
105
+ - SWIGLANG : php
106
+ VER : ' 7.2'
107
+ - SWIGLANG : php
108
+ VER : ' 7.3'
86
109
- SWIGLANG : php
87
110
VER : ' 7.4'
88
111
- SWIGLANG : php
112
+ - SWIGLANG : php
113
+ VER : ' 8.1'
89
114
- SWIGLANG : python
115
+ PY2 : 2
90
116
- SWIGLANG : python
91
- PY3 : 3
92
117
VER : ' 3.2'
93
118
os : ubuntu-18.04 # Python < 3.5 not available for 20.04.
119
+ continue-on-error : true # broken packages problem
94
120
- SWIGLANG : python
95
- PY3 : 3
96
121
VER : ' 3.3'
97
122
os : ubuntu-18.04 # Python < 3.5 not available for 20.04.
98
123
- SWIGLANG : python
99
- PY3 : 3
100
124
VER : ' 3.4'
101
125
os : ubuntu-18.04 # Python < 3.5 not available for 20.04.
102
126
- SWIGLANG : python
103
- PY3 : 3
104
127
VER : ' 3.5'
105
128
- SWIGLANG : python
106
- PY3 : 3
107
129
VER : ' 3.6'
108
130
- SWIGLANG : python
109
- PY3 : 3
110
131
VER : ' 3.7'
111
132
- SWIGLANG : python
112
- PY3 : 3
113
133
VER : ' 3.8'
114
134
- SWIGLANG : python
115
- PY3 : 3
116
135
VER : ' 3.9'
117
136
- SWIGLANG : python
118
- PY3 : 3
119
137
VER : ' 3.10'
120
138
- SWIGLANG : python
139
+ PY2 : 2
121
140
SWIG_FEATURES : -builtin
122
141
- SWIGLANG : python
142
+ PY2 : 2
123
143
SWIG_FEATURES : -builtin -O
124
144
- SWIGLANG : python
125
- PY3 : 3
126
145
SWIG_FEATURES : -builtin
127
146
- SWIGLANG : python
128
- PY3 : 3
129
147
SWIG_FEATURES : -builtin -O
130
148
- SWIGLANG : r
131
149
- SWIGLANG : ruby
@@ -155,7 +173,10 @@ jobs:
155
173
VER : ' 3.0'
156
174
CPPSTD : c++11
157
175
- SWIGLANG : scilab
158
- os : ubuntu-18.04 # scilab-6.1 in ubuntu-20.04 not yet working
176
+ VER : ' 5.5.2'
177
+ - SWIGLANG : scilab
178
+ os : ubuntu-18.04 # scilab 6.0
179
+ - SWIGLANG : scilab
159
180
- SWIGLANG : tcl
160
181
# c++11 testing
161
182
- SWIGLANG : csharp
@@ -174,23 +195,19 @@ jobs:
174
195
CPPSTD : c++11
175
196
- SWIGLANG : lua
176
197
CPPSTD : c++11
177
- # - SWIGLANG: octave
178
- # CPPSTD: c++11
179
198
- SWIGLANG : perl5
180
199
CPPSTD : c++11
181
200
- SWIGLANG : php
182
201
CPPSTD : c++11
183
202
CSTD : gnu11
184
203
- SWIGLANG : python
185
204
CPPSTD : c++11
186
- PY3 : 3
187
205
- SWIGLANG : r
188
206
CPPSTD : c++11
189
207
- SWIGLANG : ruby
190
208
CPPSTD : c++11
191
209
- SWIGLANG : scilab
192
210
CPPSTD : c++11
193
- os : ubuntu-18.04 # scilab-6.1 in ubuntu-20.04 not yet working
194
211
- SWIGLANG : tcl
195
212
CPPSTD : c++11
196
213
# c++14 testing
@@ -219,14 +236,12 @@ jobs:
219
236
CSTD : gnu11
220
237
- SWIGLANG : python
221
238
CPPSTD : c++14
222
- PY3 : 3
223
239
- SWIGLANG : r
224
240
CPPSTD : c++14
225
241
- SWIGLANG : ruby
226
242
CPPSTD : c++14
227
243
- SWIGLANG : scilab
228
244
CPPSTD : c++14
229
- os : ubuntu-18.04 # scilab-6.1 in ubuntu-20.04 not yet working
230
245
- SWIGLANG : tcl
231
246
CPPSTD : c++14
232
247
# c++17 testing (using gcc11)
@@ -265,7 +280,6 @@ jobs:
265
280
- SWIGLANG : python
266
281
CPPSTD : c++17
267
282
GCC : 11
268
- PY3 : 3
269
283
- SWIGLANG : r
270
284
CPPSTD : c++17
271
285
GCC : 11
@@ -275,28 +289,30 @@ jobs:
275
289
- SWIGLANG : scilab
276
290
CPPSTD : c++17
277
291
GCC : 11
278
- os : ubuntu-18.04 # scilab-6.1 in ubuntu-20.04 not yet working
279
292
- SWIGLANG : tcl
280
293
CPPSTD : c++17
281
294
GCC : 11
282
295
# Experimental languages (these are allowed to fail)
283
296
- SWIGLANG : mzscheme
284
297
continue-on-error : true
285
298
- SWIGLANG : ocaml
299
+ CPPSTD : c++17
300
+ GCC : 11
286
301
continue-on-error : true
287
302
os : ubuntu-18.04 # ocaml-4.08 in ubuntu-20.04 not yet working
288
303
# Run all of them, as opposed to aborting when one fails
289
304
fail-fast : false
290
305
291
306
env :
292
307
SWIGLANG : ${{ matrix.SWIGLANG }}
293
- PY3 : ${{ matrix.PY3 }}
308
+ PY2 : ${{ matrix.PY2 }}
294
309
VER : ${{ matrix.VER }}
295
310
ENGINE : ${{ matrix.ENGINE }}
296
311
SWIG_FEATURES : ${{ matrix.SWIG_FEATURES }}
297
312
GCC : ${{ matrix.GCC }}
298
313
CSTD : ${{ matrix.CSTD }}
299
314
CPPSTD : ${{ matrix.CPPSTD }}
315
+ CPPFLAGS : ${{ matrix.CPPFLAGS }}
300
316
301
317
steps :
302
318
- name : Checkout
@@ -309,6 +325,10 @@ jobs:
309
325
with :
310
326
key : ${{ matrix.os || 'ubuntu-20.04' }}-${{ matrix.compiler || 'gcc' }}${{ matrix.GCC }}
311
327
328
+ # Uncomment to debug via ssh, see https://github.com/mxschmitt/action-tmate
329
+ # - name: Setup tmate session
330
+ # uses: mxschmitt/action-tmate@v3
331
+
312
332
- name : Install Dependencies
313
333
run : |
314
334
set -x
@@ -372,7 +392,8 @@ jobs:
372
392
esac
373
393
echo CSTD="$CSTD" >> $GITHUB_ENV
374
394
fi
375
- if test -n "$CPPSTD"; then CONFIGOPTS+=(--enable-cpp11-testing "CXXFLAGS=-std=$CPPSTD $CXXFLAGS"); fi
395
+ if test -z "$CPPSTD"; then CONFIGOPTS+=("--disable-cpp11-testing"); fi
396
+ if test -n "$CPPSTD"; then CONFIGOPTS+=("CXXFLAGS=-std=$CPPSTD $CXXFLAGS"); fi
376
397
if test -n "$CSTD"; then CONFIGOPTS+=("CFLAGS=-std=$CSTD $CFLAGS"); fi
377
398
if test -n "$SWIGLANG"; then CONFIGOPTS+=(--without-alllang --with-$WITHLANG); fi
378
399
echo "${CONFIGOPTS[@]}"
@@ -409,8 +430,8 @@ jobs:
409
430
esac
410
431
411
432
# Stricter compile flags for examples. Various headers and SWIG generated code prevents full use of -pedantic.
412
- cflags=$($GITHUB_WORKSPACE/Tools/testflags.py --language $SWIGLANG --cflags --std=$CSTD --compiler=$CC) && echo $cflags
413
- cxxflags=$($GITHUB_WORKSPACE/Tools/testflags.py --language $SWIGLANG --cxxflags --std=$CPPSTD --compiler=$CC) && echo $cxxflags
433
+ cflags=$($GITHUB_WORKSPACE/Tools/testflags.py --language $SWIGLANG --cflags --std=$CSTD --compiler=$CC)
434
+ cxxflags=$($GITHUB_WORKSPACE/Tools/testflags.py --language $SWIGLANG --cxxflags --std=$CPPSTD --compiler=$CC)
414
435
make check-$SWIGLANG-version
415
436
make check-$SWIGLANG-enabled
416
437
make $SWIGJOBS check-$SWIGLANG-examples CFLAGS="$cflags" CXXFLAGS="$cxxflags"
0 commit comments