@@ -32,17 +32,17 @@ jobs:
32
32
runs-on : ubuntu-latest
33
33
steps :
34
34
- name : Cache .hunter folder
35
- uses : actions/cache@v2
35
+ uses : actions/cache@v3
36
36
with :
37
37
path : ~/.hunter
38
38
key : hunter-ubuntu-latest
39
39
- name : List .hunter cache directory
40
40
run : ls -a -l ~/.hunter/_Base/ || true
41
- - uses : actions/checkout@v2
41
+ - uses : actions/checkout@v3
42
42
with :
43
43
submodules : ' recursive'
44
44
- name : Set up Python
45
- uses : actions/setup-python@v2
45
+ uses : actions/setup-python@v4
46
46
with :
47
47
python-version : 3.8
48
48
- name : Install dependencies
55
55
- name : Build target 'pybind11_mkdoc'
56
56
run : cmake --build build --target pybind11_mkdoc --parallel 4
57
57
- name : Upload docstring artifacts
58
- uses : actions/upload-artifact@v2
58
+ uses : actions/upload-artifact@v3
59
59
with :
60
60
name : docstrings
61
61
path : docstrings/
@@ -75,30 +75,30 @@ jobs:
75
75
76
76
- name : Cache .hunter folder
77
77
if : matrix.os != 'windows-latest'
78
- uses : actions/cache@v2
78
+ uses : actions/cache@v3
79
79
with :
80
80
path : ~/.hunter/
81
81
key : hunter-pytest-${{ matrix.os }}
82
82
- name : Cache .hunter folder
83
83
if : matrix.os == 'windows-latest'
84
- uses : actions/cache@v2
84
+ uses : actions/cache@v3
85
85
with :
86
86
path : C:/.hunter/
87
87
key : hunter-pytest-${{ matrix.os }}
88
88
89
- - uses : actions/checkout@v2
89
+ - uses : actions/checkout@v3
90
90
with :
91
91
submodules : ' recursive'
92
92
93
- - uses : actions/download-artifact@v2
93
+ - uses : actions/download-artifact@v3
94
94
with :
95
95
name : ' docstrings'
96
96
path : docstrings
97
97
- name : Specify docstring to use while building the wheel
98
98
run : echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV
99
99
100
100
- name : Set up Python ${{ matrix.python-version }}
101
- uses : actions/setup-python@v2
101
+ uses : actions/setup-python@v4
102
102
with :
103
103
python-version : " 3.10"
104
104
@@ -137,11 +137,11 @@ jobs:
137
137
steps :
138
138
- name : Print home directory
139
139
run : echo Home directory inside container $HOME
140
- - uses : actions/checkout@v2
140
+ - uses : actions/checkout@v3
141
141
with :
142
142
submodules : ' recursive'
143
143
144
- - uses : actions/download-artifact@v2
144
+ - uses : actions/download-artifact@v3
145
145
with :
146
146
name : ' docstrings'
147
147
path : docstrings
@@ -156,7 +156,7 @@ jobs:
156
156
- name : Auditing wheel
157
157
run : for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat linux_armv7l -w wheelhouse/audited/; done
158
158
- name : Archive wheel artifacts
159
- uses : actions/upload-artifact@v2
159
+ uses : actions/upload-artifact@v3
160
160
with :
161
161
name : audited-wheels
162
162
path : wheelhouse/audited/
@@ -175,20 +175,20 @@ jobs:
175
175
runs-on : windows-latest
176
176
strategy :
177
177
matrix :
178
- python-version : [3.6, 3.7, 3.8, 3.9, '3.10']
178
+ python-version : [3.6, 3.7, 3.8, 3.9, '3.10', '3.11' ]
179
179
python-architecture : [x64, x86]
180
180
fail-fast : false
181
181
steps :
182
182
- name : Cache .hunter folder
183
- uses : actions/cache@v2
183
+ uses : actions/cache@v3
184
184
with :
185
185
path : C:/.hunter
186
186
key : hunter-msvc
187
- - uses : actions/checkout@v2
187
+ - uses : actions/checkout@v3
188
188
with :
189
189
submodules : ' recursive'
190
190
191
- - uses : actions/download-artifact@v2
191
+ - uses : actions/download-artifact@v3
192
192
with :
193
193
name : ' docstrings'
194
194
path : docstrings
@@ -199,7 +199,7 @@ jobs:
199
199
run : echo "CMAKE_ARGS=-DCMAKE_SYSTEM_VERSION=${{ env.CMAKE_WINDOWS_SDK_VERSION }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
200
200
201
201
- name : Set up Python ${{ matrix.python-version }}
202
- uses : actions/setup-python@v2
202
+ uses : actions/setup-python@v4
203
203
with :
204
204
python-version : ${{ matrix.python-version }}
205
205
architecture : ${{ matrix.python-architecture }}
@@ -212,7 +212,7 @@ jobs:
212
212
- name : Building wheels
213
213
run : python -m pip wheel . -w ./wheelhouse/audited/ --verbose
214
214
- name : Archive wheel artifacts
215
- uses : actions/upload-artifact@v2
215
+ uses : actions/upload-artifact@v3
216
216
with :
217
217
name : audited-wheels
218
218
path : wheelhouse/audited/
@@ -230,11 +230,11 @@ jobs:
230
230
runs-on : macos-latest
231
231
strategy :
232
232
matrix :
233
- python-version : [3.6, 3.7, 3.8, 3.9, '3.10']
233
+ python-version : [3.6, 3.7, 3.8, 3.9, '3.10', '3.11' ]
234
234
fail-fast : false
235
235
steps :
236
236
- name : Cache .hunter folder
237
- uses : actions/cache@v2
237
+ uses : actions/cache@v3
238
238
with :
239
239
path : ~/.hunter
240
240
key : hunter-macos-latest
@@ -243,19 +243,19 @@ jobs:
243
243
ls -a -l ~/.hunter/_Base/ || true
244
244
echo "PATH=$PATH"
245
245
246
- - uses : actions/checkout@v2
246
+ - uses : actions/checkout@v3
247
247
with :
248
248
submodules : ' recursive'
249
249
250
- - uses : actions/download-artifact@v2
250
+ - uses : actions/download-artifact@v3
251
251
with :
252
252
name : ' docstrings'
253
253
path : docstrings
254
254
- name : Specify docstring to use while building the wheel
255
255
run : echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV
256
256
257
257
- name : Set up Python ${{ matrix.python-version }}
258
- uses : actions/setup-python@v2
258
+ uses : actions/setup-python@v4
259
259
with :
260
260
python-version : ${{ matrix.python-version }}
261
261
- name : Append build hash if not a tagged commit
@@ -273,7 +273,7 @@ jobs:
273
273
- name : Auditing wheels
274
274
run : ci/repair-whl-macos.sh `pwd`/wheelhouse/* `pwd`/wheelhouse/audited
275
275
- name : Archive wheel artifacts
276
- uses : actions/upload-artifact@v2
276
+ uses : actions/upload-artifact@v3
277
277
with :
278
278
name : audited-wheels
279
279
path : wheelhouse/audited/
@@ -292,7 +292,7 @@ jobs:
292
292
steps :
293
293
# Cached locally on runner
294
294
# - name: Cache .hunter folder
295
- # uses: actions/cache@v2
295
+ # uses: actions/cache@v3
296
296
# with:
297
297
# path: ~/.hunter
298
298
# key: hunter-macos-latest
@@ -301,11 +301,11 @@ jobs:
301
301
ls -a -l ~/.hunter/_Base/ || true
302
302
echo "PATH=$PATH"
303
303
304
- - uses : actions/checkout@v2
304
+ - uses : actions/checkout@v3
305
305
with :
306
306
submodules : ' recursive'
307
307
308
- - uses : actions/download-artifact@v2
308
+ - uses : actions/download-artifact@v3
309
309
with :
310
310
name : ' docstrings'
311
311
path : docstrings
@@ -324,13 +324,13 @@ jobs:
324
324
# echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/" >> $GITHUB_ENV
325
325
326
326
- name : Build wheels
327
- run : for PYBIN in {9..10 }; do "python3.${PYBIN}" -m pip wheel . -w wheelhouse/ --verbose; done
327
+ run : for PYBIN in {9..11 }; do "python3.${PYBIN}" -m pip wheel . -w wheelhouse/ --verbose; done
328
328
329
329
- name : Auditing wheels
330
330
run : delocate-wheel -v -w wheelhouse/audited wheelhouse/*.whl
331
331
332
332
- name : Archive wheel artifacts
333
- uses : actions/upload-artifact@v2
333
+ uses : actions/upload-artifact@v3
334
334
with :
335
335
name : audited-wheels
336
336
path : wheelhouse/audited/
@@ -347,16 +347,16 @@ jobs:
347
347
needs : build-docstrings
348
348
runs-on : ubuntu-latest
349
349
container :
350
- image : quay.io/pypa/manylinux2014_x86_64:2021-11-15-a808c18
350
+ image : quay.io/pypa/manylinux2014_x86_64:2022-10-30-402504a
351
351
env :
352
352
PLAT : manylinux2014_x86_64
353
353
steps :
354
354
- name : Cache .hunter folder
355
- uses : actions/cache@v2
355
+ uses : actions/cache@v3
356
356
with :
357
357
path : ~/.hunter
358
358
key : hunter-x86_64
359
- - uses : actions/checkout@v2
359
+ - uses : actions/checkout@v3
360
360
with :
361
361
submodules : ' recursive'
362
362
- name : Installing libusb1-devel dependency
@@ -368,7 +368,7 @@ jobs:
368
368
- name : Create folder structure
369
369
run : mkdir -p wheelhouse/audited/
370
370
371
- - uses : actions/download-artifact@v2
371
+ - uses : actions/download-artifact@v3
372
372
with :
373
373
name : ' docstrings'
374
374
path : docstrings
@@ -390,11 +390,11 @@ jobs:
390
390
/opt/python/cp38-cp38/bin/python3.8 setup.py sdist --formats=gztar
391
391
mv dist/* wheelhouse/audited/
392
392
- name : Build wheels
393
- run : for PYBIN in /opt/python/cp3{6..10 }*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done
393
+ run : for PYBIN in /opt/python/cp3{6..11 }*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done
394
394
- name : Audit wheels
395
395
run : for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat $PLAT -w wheelhouse/audited/; done
396
396
- name : Archive wheel artifacts
397
- uses : actions/upload-artifact@v2
397
+ uses : actions/upload-artifact@v3
398
398
with :
399
399
name : audited-wheels
400
400
path : wheelhouse/audited/
@@ -411,14 +411,14 @@ jobs:
411
411
needs : build-docstrings
412
412
runs-on : [self-hosted, linux, ARM64]
413
413
container :
414
- image : quay.io/pypa/manylinux2014_aarch64:2021-11-15-a808c18
414
+ image : quay.io/pypa/manylinux2014_aarch64:2022-10-30-402504a
415
415
env :
416
416
PLAT : manylinux2014_aarch64
417
417
# Mount local hunter cache directory, instead of transfering to Github and back
418
418
volumes :
419
419
- /.hunter:/github/home/.hunter
420
420
steps :
421
- - uses : actions/checkout@v2
421
+ - uses : actions/checkout@v3
422
422
with :
423
423
submodules : ' recursive'
424
424
- name : Installing libusb1-devel dependency
@@ -430,7 +430,7 @@ jobs:
430
430
- name : Create folder structure
431
431
run : mkdir -p wheelhouse/audited/
432
432
433
- - uses : actions/download-artifact@v2
433
+ - uses : actions/download-artifact@v3
434
434
with :
435
435
name : ' docstrings'
436
436
path : docstrings
@@ -447,11 +447,11 @@ jobs:
447
447
if : startsWith(github.ref, 'refs/tags/v') != true
448
448
run : echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV
449
449
- name : Building wheels
450
- run : for PYBIN in /opt/python/cp3{6..10 }*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done
450
+ run : for PYBIN in /opt/python/cp3{6..11 }*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done
451
451
- name : Auditing wheels
452
452
run : for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat $PLAT -w wheelhouse/audited/; done
453
453
- name : Archive wheel artifacts
454
- uses : actions/upload-artifact@v2
454
+ uses : actions/upload-artifact@v3
455
455
with :
456
456
name : audited-wheels
457
457
path : wheelhouse/audited/
@@ -469,15 +469,17 @@ jobs:
469
469
runs-on : ubuntu-latest
470
470
471
471
steps :
472
- - uses : actions/checkout@v2
472
+ - uses : actions/checkout@v3
473
473
with :
474
474
submodules : ' recursive'
475
475
476
+ # Get tag version
477
+ # TODO(themarpe) - Node12, has to be updated
476
478
- name : Get tag version
477
479
id : tag
478
480
uses : battila7/get-version-action@v2
479
481
480
- - uses : actions/setup-python@v2
482
+ - uses : actions/setup-python@v4
481
483
with :
482
484
python-version : ' 3.8'
483
485
@@ -508,10 +510,10 @@ jobs:
508
510
needs : [release]
509
511
runs-on : ubuntu-latest
510
512
steps :
511
- - uses : actions/checkout@v2
513
+ - uses : actions/checkout@v3
512
514
with :
513
515
submodules : ' recursive'
514
- - uses : actions/download-artifact@v2
516
+ - uses : actions/download-artifact@v3
515
517
with :
516
518
name : audited-wheels
517
519
path : wheelhouse/audited/
@@ -536,4 +538,3 @@ jobs:
536
538
repository : luxonis/robothub-apps
537
539
event-type : depthai-python-release
538
540
client-payload : ' {"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
539
-
0 commit comments