20
20
max-parallel : 2
21
21
fail-fast : false
22
22
runs-on : ubuntu-latest
23
- container : " tinybases/${{matrix.arch}}-python:3.6-debian-4"
23
+ container : " tinybases/${{ matrix.arch }}-python:3.6-debian-4"
24
24
steps :
25
25
-
26
26
name : Checkout
35
35
pkgvers=3.6.2
36
36
pkgname=cmake
37
37
pkgcode=cmake-${pkgvers}
38
- case "${{matrix.arch}}" in
38
+ case "${{ matrix.arch }}" in
39
39
amd64) pkgfile=${pkgcode}-Linux-x86_64.tar.gz;;
40
40
*) pkgfile=${pkgcode}-Linux-i386.tar.gz;;
41
41
esac
@@ -57,15 +57,15 @@ jobs:
57
57
run : |
58
58
set -e
59
59
. /etc/profile
60
- cd ${{env.PKGDIR}}
60
+ cd ${{ env.PKGDIR }}
61
61
export MAKEFLAGS="-j 16"
62
62
python -c "import utils; utils.GeosLibrary('3.6.5').build('extern')"
63
63
-
64
64
name : Upload GEOS artifacts
65
65
uses : actions/upload-artifact@v1
66
66
with :
67
- name : artifacts-geos-${{matrix.arch}}
68
- path : ${{env.PKGDIR}}/extern
67
+ name : artifacts-geos-${{ matrix.arch }}
68
+ path : ${{ env.PKGDIR }}/extern
69
69
70
70
build :
71
71
strategy :
88
88
fail-fast : false
89
89
needs : build-geos
90
90
runs-on : ubuntu-latest
91
- container : " tinybases/${{matrix.arch}}-python:${{matrix.python-version}}-debian-4"
91
+ container : " tinybases/${{ matrix.arch }}-python:${{ matrix.python-version }}-debian-4"
92
92
steps :
93
93
-
94
94
name : Checkout
97
97
name : Download GEOS artifacts
98
98
uses : actions/download-artifact@v1
99
99
with :
100
- name : artifacts-geos-${{matrix.arch}}
101
- path : ${{env.PKGDIR}}/extern
100
+ name : artifacts-geos-${{ matrix.arch }}
101
+ path : ${{ env.PKGDIR }}/extern
102
102
-
103
103
name : Install GCC toolchain
104
104
run : |
@@ -119,7 +119,7 @@ jobs:
119
119
run : |
120
120
set -e
121
121
. /etc/profile
122
- case "${{matrix.python-version}}" in
122
+ case "${{ matrix.python-version }}" in
123
123
2.[67]|3.[01234]) pkgvers=1.11.3;;
124
124
*) pkgvers=1.16.6;;
125
125
esac
@@ -132,14 +132,14 @@ jobs:
132
132
python setup.py build -j 2
133
133
cp build/src*/numpy/core/include/numpy/*.h numpy/core/include/numpy/
134
134
cd ..
135
- cp -R ${pkgcode}/numpy/core/include ${{env.PKGDIR}}/extern
135
+ cp -R ${pkgcode}/numpy/core/include ${{ env.PKGDIR }}/extern
136
136
rm -rf ${pkgcode}
137
137
-
138
138
name : Build wheel
139
139
run : |
140
140
set -e
141
141
. /etc/profile
142
- cd ${{env.PKGDIR}}
142
+ cd ${{ env.PKGDIR }}
143
143
export GEOS_DIR=extern
144
144
export NUMPY_INCLUDE_PATH=extern/include
145
145
pip install -r requirements-setup.txt
@@ -148,8 +148,8 @@ jobs:
148
148
name : Upload build artifacts
149
149
uses : actions/upload-artifact@v1
150
150
with :
151
- name : artifacts-build-${{matrix.arch}}-${{matrix.python-version}}
152
- path : ${{env.PKGDIR}}/dist
151
+ name : artifacts-build-${{ matrix.arch }}-${{ matrix.python-version }}
152
+ path : ${{ env.PKGDIR }}/dist
153
153
154
154
repair :
155
155
strategy :
@@ -172,7 +172,7 @@ jobs:
172
172
fail-fast : false
173
173
needs : build
174
174
runs-on : ubuntu-latest
175
- container : " tinybases/${{matrix.arch}}-python:3.6-debian-5"
175
+ container : " tinybases/${{ matrix.arch }}-python:3.6-debian-5"
176
176
steps :
177
177
-
178
178
name : Checkout
@@ -181,14 +181,14 @@ jobs:
181
181
name : Download GEOS artifacts
182
182
uses : actions/download-artifact@v1
183
183
with :
184
- name : artifacts-geos-${{matrix.arch}}
185
- path : ${{env.PKGDIR}}/extern
184
+ name : artifacts-geos-${{ matrix.arch }}
185
+ path : ${{ env.PKGDIR }}/extern
186
186
-
187
187
name : Download build artifacts
188
188
uses : actions/download-artifact@v1
189
189
with :
190
- name : artifacts-build-${{matrix.arch}}-${{matrix.python-version}}
191
- path : ${{env.PKGDIR}}/dist
190
+ name : artifacts-build-${{ matrix.arch }}-${{ matrix.python-version }}
191
+ path : ${{ env.PKGDIR }}/dist
192
192
-
193
193
name : Install GCC toolchain
194
194
run : |
@@ -243,15 +243,15 @@ jobs:
243
243
run : |
244
244
set -e
245
245
. /etc/profile
246
- cd ${{env.PKGDIR}}
246
+ cd ${{ env.PKGDIR }}
247
247
export LD_LIBRARY_PATH="$(readlink -f extern/lib)"
248
248
auditwheel repair -w dist dist/*.whl
249
249
-
250
- name : Upload artifacts
250
+ name : Upload build artifacts
251
251
uses : actions/upload-artifact@v1
252
252
with :
253
- name : artifacts-build-${{matrix.arch}}-${{matrix.python-version}}
254
- path : ${{env.PKGDIR}}/dist
253
+ name : artifacts-build-${{ matrix.arch }}-${{ matrix.python-version }}
254
+ path : ${{ env.PKGDIR }}/dist
255
255
256
256
upload :
257
257
strategy :
@@ -274,7 +274,7 @@ jobs:
274
274
if : startsWith(github.event.ref, 'refs/tags/v')
275
275
needs : repair
276
276
runs-on : ubuntu-latest
277
- container : " tinybases/${{matrix.arch}}-python:${{matrix.python-version}}-debian-5"
277
+ container : " tinybases/${{ matrix.arch }}-python:${{ matrix.python-version }}-debian-5"
278
278
environment : PyPI
279
279
steps :
280
280
-
@@ -284,8 +284,8 @@ jobs:
284
284
name : Download build artifacts
285
285
uses : actions/download-artifact@v1
286
286
with :
287
- name : artifacts-build-${{matrix.arch}}-${{matrix.python-version}}
288
- path : ${{env.PKGDIR}}/dist
287
+ name : artifacts-build-${{ matrix.arch }}-${{ matrix.python-version }}
288
+ path : ${{ env.PKGDIR }}/dist
289
289
-
290
290
name : Print environment
291
291
run : |
@@ -302,14 +302,14 @@ jobs:
302
302
name : Upload distributables
303
303
env :
304
304
TWINE_USERNAME : __token__
305
- TWINE_PASSWORD : " ${{secrets.PYPI_TOKEN}}"
306
- TWINE_REPOSITORY_URL : " ${{secrets.PYPI_REPOSITORY_URL}}"
305
+ TWINE_PASSWORD : " ${{ secrets.PYPI_TOKEN }}"
306
+ TWINE_REPOSITORY_URL : " ${{ secrets.PYPI_REPOSITORY_URL }}"
307
307
run : |
308
308
set -e
309
309
. /etc/profile
310
310
python -m twine check \
311
- ${{env.PKGDIR}}/dist/*.tar.gz \
312
- ${{env.PKGDIR}}/dist/*-manylinux1*.whl
311
+ ${{ env.PKGDIR }}/dist/*.tar.gz \
312
+ ${{ env.PKGDIR }}/dist/*-manylinux1*.whl
313
313
python -m twine upload --skip-existing \
314
- ${{env.PKGDIR}}/dist/*.tar.gz \
315
- ${{env.PKGDIR}}/dist/*-manylinux1*.whl
314
+ ${{ env.PKGDIR }}/dist/*.tar.gz \
315
+ ${{ env.PKGDIR }}/dist/*-manylinux1*.whl
0 commit comments