Skip to content

Commit d1dc55e

Browse files
Matevz Moratoalex-luxonis
authored andcommitted
cherry-pick: Update CI to run on github hoster runners and pin down manylinux containers,
and other fixes from develop
1 parent 68dd9e0 commit d1dc55e

File tree

1 file changed

+11
-32
lines changed

1 file changed

+11
-32
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,6 @@ jobs:
138138
matrix:
139139
rpi-os: [rpi-buster, rpi-bullseye, rpi-bookworm]
140140
runs-on: ${{ matrix.rpi-os }}
141-
env:
142-
# workaround required for cache@v3, https://github.com/actions/cache/issues/1428
143-
# to be removed when upgrading the manylinux image
144-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
145141
steps:
146142
- name: Print home directory
147143
run: echo Home directory inside container $HOME
@@ -171,7 +167,7 @@ jobs:
171167
- name: Archive wheel artifacts
172168
uses: actions/upload-artifact@v4
173169
with:
174-
name: audited-wheels
170+
name: audited-wheels-${{ matrix.rpi-os }}
175171
path: wheelhouse/audited/
176172
- name: Deploy wheels to artifactory (if not a release)
177173
if: startsWith(github.ref, 'refs/tags/v') != true
@@ -229,7 +225,7 @@ jobs:
229225
- name: Archive wheel artifacts
230226
uses: actions/upload-artifact@v4
231227
with:
232-
name: audited-wheels
228+
name: audited-wheels-windows-${{ matrix.python-version }}-${{ matrix.python-architecture }}
233229
path: wheelhouse/audited/
234230
- name: Deploy wheels to artifactory (if not a release)
235231
if: startsWith(github.ref, 'refs/tags/v') != true
@@ -304,14 +300,10 @@ jobs:
304300
build-linux-x86_64:
305301
needs: build-docstrings
306302
runs-on: ubuntu-latest
307-
env:
308-
# workaround required for cache@v3, https://github.com/actions/cache/issues/1428
309-
# to be removed when upgrading the manylinux image
310-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
311303
container:
312-
image: quay.io/pypa/manylinux2014_x86_64:latest
304+
image: quay.io/pypa/manylinux_2_28_x86_64:2024.12.05-1
313305
env:
314-
PLAT: manylinux2014_x86_64
306+
PLAT: manylinux_2_28_x86_64
315307
steps:
316308
- name: Cache .hunter folder
317309
uses: actions/cache@v4
@@ -321,11 +313,6 @@ jobs:
321313
- uses: actions/checkout@v4
322314
with:
323315
submodules: 'recursive'
324-
- name: Patching mirrorlist
325-
run: |
326-
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
327-
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
328-
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
329316
- name: Installing libusb1-devel dependency
330317
run: yum install -y --disableplugin=fastestmirror libusb1-devel perl-core
331318
- name: Installing cmake dependency
@@ -363,7 +350,7 @@ jobs:
363350
- name: Archive wheel artifacts
364351
uses: actions/upload-artifact@v4
365352
with:
366-
name: audited-wheels
353+
name: audited-wheels-linux-x86_64
367354
path: wheelhouse/audited/
368355
- name: Deploy wheels to artifactory (if not a release)
369356
if: startsWith(github.ref, 'refs/tags/v') != true
@@ -376,27 +363,18 @@ jobs:
376363
# This job builds wheels for ARM64 arch
377364
build-linux-arm64:
378365
needs: build-docstrings
379-
runs-on: [self-hosted, linux, ARM64]
380-
env:
381-
# workaround required for cache@v3, https://github.com/actions/cache/issues/1428
382-
# to be removed when upgrading the manylinux image
383-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
366+
runs-on: ubuntu-24.04-arm
384367
container:
385-
image: quay.io/pypa/manylinux2014_aarch64:latest
368+
image: quay.io/pypa/manylinux_2_28_aarch64:2024.12.05-1
386369
env:
387-
PLAT: manylinux2014_aarch64
370+
PLAT: manylinux_2_28_aarch64
388371
# Mount local hunter cache directory, instead of transfering to Github and back
389372
volumes:
390373
- /.hunter:/github/home/.hunter
391374
steps:
392375
- uses: actions/checkout@v4
393376
with:
394377
submodules: 'recursive'
395-
- name: Patching mirrorlist
396-
run: |
397-
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
398-
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
399-
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
400378
- name: Installing libusb1-devel dependency
401379
run: yum install -y --disableplugin=fastestmirror libusb1-devel perl-core
402380
- name: Installing cmake dependency
@@ -429,7 +407,7 @@ jobs:
429407
- name: Archive wheel artifacts
430408
uses: actions/upload-artifact@v4
431409
with:
432-
name: audited-wheels
410+
name: audited-wheels-linux-arm64
433411
path: wheelhouse/audited/
434412
- name: Deploy wheels to artifactory (if not a release)
435413
if: startsWith(github.ref, 'refs/tags/v') != true
@@ -485,7 +463,8 @@ jobs:
485463
submodules: 'recursive'
486464
- uses: actions/download-artifact@v4
487465
with:
488-
name: audited-wheels
466+
pattern: audited-wheels*
467+
merge-multiple: true
489468
path: wheelhouse/audited/
490469
- name: List files
491470
run: ls -lah

0 commit comments

Comments
 (0)