Skip to content

Commit 31280ab

Browse files
authored
Merge branch 'swig:master' into master
2 parents 975a36d + 34c219b commit 31280ab

File tree

579 files changed

+11088
-5372
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

579 files changed

+11088
-5372
lines changed

.github/workflows/ci.yml

+49-28
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ jobs:
2424

2525
# By default, the name of the build is the language used and SWIG options, but matrix entries
2626
# 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)' }}
2828

2929
strategy:
3030
matrix:
3131
include:
3232
- SWIGLANG: ""
33+
CPPFLAGS: "-DDOH_POISON"
3334
- SWIGLANG: ""
3435
GCC: 7
3536
- SWIGLANG: ""
@@ -64,6 +65,21 @@ jobs:
6465
VER: '1.17'
6566
- SWIGLANG: guile
6667
- 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
6783
- SWIGLANG: javascript
6884
ENGINE: node
6985
VER: '12'
@@ -74,58 +90,60 @@ jobs:
7490
CPPSTD: c++14
7591
- SWIGLANG: javascript
7692
ENGINE: jsc
77-
- SWIGLANG: javascript
78-
ENGINE: v8
79-
os: ubuntu-18.04 # libv8-dev only actually provides v8 in 18.04.
8093
- SWIGLANG: lua
8194
- SWIGLANG: lua
8295
VER: '5.3'
8396
- SWIGLANG: octave
8497
CPPSTD: c++11
98+
- SWIGLANG: octave
99+
CPPSTD: c++11
85100
- 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'
86109
- SWIGLANG: php
87110
VER: '7.4'
88111
- SWIGLANG: php
112+
- SWIGLANG: php
113+
VER: '8.1'
89114
- SWIGLANG: python
115+
PY2: 2
90116
- SWIGLANG: python
91-
PY3: 3
92117
VER: '3.2'
93118
os: ubuntu-18.04 # Python < 3.5 not available for 20.04.
119+
continue-on-error: true # broken packages problem
94120
- SWIGLANG: python
95-
PY3: 3
96121
VER: '3.3'
97122
os: ubuntu-18.04 # Python < 3.5 not available for 20.04.
98123
- SWIGLANG: python
99-
PY3: 3
100124
VER: '3.4'
101125
os: ubuntu-18.04 # Python < 3.5 not available for 20.04.
102126
- SWIGLANG: python
103-
PY3: 3
104127
VER: '3.5'
105128
- SWIGLANG: python
106-
PY3: 3
107129
VER: '3.6'
108130
- SWIGLANG: python
109-
PY3: 3
110131
VER: '3.7'
111132
- SWIGLANG: python
112-
PY3: 3
113133
VER: '3.8'
114134
- SWIGLANG: python
115-
PY3: 3
116135
VER: '3.9'
117136
- SWIGLANG: python
118-
PY3: 3
119137
VER: '3.10'
120138
- SWIGLANG: python
139+
PY2: 2
121140
SWIG_FEATURES: -builtin
122141
- SWIGLANG: python
142+
PY2: 2
123143
SWIG_FEATURES: -builtin -O
124144
- SWIGLANG: python
125-
PY3: 3
126145
SWIG_FEATURES: -builtin
127146
- SWIGLANG: python
128-
PY3: 3
129147
SWIG_FEATURES: -builtin -O
130148
- SWIGLANG: r
131149
- SWIGLANG: ruby
@@ -155,7 +173,10 @@ jobs:
155173
VER: '3.0'
156174
CPPSTD: c++11
157175
- 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
159180
- SWIGLANG: tcl
160181
# c++11 testing
161182
- SWIGLANG: csharp
@@ -174,23 +195,19 @@ jobs:
174195
CPPSTD: c++11
175196
- SWIGLANG: lua
176197
CPPSTD: c++11
177-
# - SWIGLANG: octave
178-
# CPPSTD: c++11
179198
- SWIGLANG: perl5
180199
CPPSTD: c++11
181200
- SWIGLANG: php
182201
CPPSTD: c++11
183202
CSTD: gnu11
184203
- SWIGLANG: python
185204
CPPSTD: c++11
186-
PY3: 3
187205
- SWIGLANG: r
188206
CPPSTD: c++11
189207
- SWIGLANG: ruby
190208
CPPSTD: c++11
191209
- SWIGLANG: scilab
192210
CPPSTD: c++11
193-
os: ubuntu-18.04 # scilab-6.1 in ubuntu-20.04 not yet working
194211
- SWIGLANG: tcl
195212
CPPSTD: c++11
196213
# c++14 testing
@@ -219,14 +236,12 @@ jobs:
219236
CSTD: gnu11
220237
- SWIGLANG: python
221238
CPPSTD: c++14
222-
PY3: 3
223239
- SWIGLANG: r
224240
CPPSTD: c++14
225241
- SWIGLANG: ruby
226242
CPPSTD: c++14
227243
- SWIGLANG: scilab
228244
CPPSTD: c++14
229-
os: ubuntu-18.04 # scilab-6.1 in ubuntu-20.04 not yet working
230245
- SWIGLANG: tcl
231246
CPPSTD: c++14
232247
# c++17 testing (using gcc11)
@@ -265,7 +280,6 @@ jobs:
265280
- SWIGLANG: python
266281
CPPSTD: c++17
267282
GCC: 11
268-
PY3: 3
269283
- SWIGLANG: r
270284
CPPSTD: c++17
271285
GCC: 11
@@ -275,28 +289,30 @@ jobs:
275289
- SWIGLANG: scilab
276290
CPPSTD: c++17
277291
GCC: 11
278-
os: ubuntu-18.04 # scilab-6.1 in ubuntu-20.04 not yet working
279292
- SWIGLANG: tcl
280293
CPPSTD: c++17
281294
GCC: 11
282295
# Experimental languages (these are allowed to fail)
283296
- SWIGLANG: mzscheme
284297
continue-on-error: true
285298
- SWIGLANG: ocaml
299+
CPPSTD: c++17
300+
GCC: 11
286301
continue-on-error: true
287302
os: ubuntu-18.04 # ocaml-4.08 in ubuntu-20.04 not yet working
288303
# Run all of them, as opposed to aborting when one fails
289304
fail-fast: false
290305

291306
env:
292307
SWIGLANG: ${{ matrix.SWIGLANG }}
293-
PY3: ${{ matrix.PY3 }}
308+
PY2: ${{ matrix.PY2 }}
294309
VER: ${{ matrix.VER }}
295310
ENGINE: ${{ matrix.ENGINE }}
296311
SWIG_FEATURES: ${{ matrix.SWIG_FEATURES }}
297312
GCC: ${{ matrix.GCC }}
298313
CSTD: ${{ matrix.CSTD }}
299314
CPPSTD: ${{ matrix.CPPSTD }}
315+
CPPFLAGS: ${{ matrix.CPPFLAGS }}
300316

301317
steps:
302318
- name: Checkout
@@ -309,6 +325,10 @@ jobs:
309325
with:
310326
key: ${{ matrix.os || 'ubuntu-20.04' }}-${{ matrix.compiler || 'gcc' }}${{ matrix.GCC }}
311327

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+
312332
- name: Install Dependencies
313333
run: |
314334
set -x
@@ -372,7 +392,8 @@ jobs:
372392
esac
373393
echo CSTD="$CSTD" >> $GITHUB_ENV
374394
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
376397
if test -n "$CSTD"; then CONFIGOPTS+=("CFLAGS=-std=$CSTD $CFLAGS"); fi
377398
if test -n "$SWIGLANG"; then CONFIGOPTS+=(--without-alllang --with-$WITHLANG); fi
378399
echo "${CONFIGOPTS[@]}"
@@ -409,8 +430,8 @@ jobs:
409430
esac
410431
411432
# 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)
414435
make check-$SWIGLANG-version
415436
make check-$SWIGLANG-enabled
416437
make $SWIGJOBS check-$SWIGLANG-examples CFLAGS="$cflags" CXXFLAGS="$cxxflags"

0 commit comments

Comments
 (0)