Skip to content

Commit 14ffdb9

Browse files
author
Matevz Morato
committed
Fix wheels build
1 parent 1dfeb6f commit 14ffdb9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ jobs:
372372
run: yum install -y --disableplugin=fastestmirror libusb1-devel
373373
- name: Installing cmake dependency
374374
run: |
375-
/opt/python/cp38-cp38/bin/python3.8 -m pip install cmake
375+
/opt/python/cp38-cp38/bin/python3.8 -m pip install "cmake<4"
376376
ln -s /opt/python/cp38-cp38/bin/cmake /bin/
377377
- name: Create folder structure
378378
run: mkdir -p wheelhouse/audited/
@@ -386,8 +386,8 @@ jobs:
386386

387387
- name: Build and install depthai-core
388388
run: |
389-
cmake -S depthai-core/ -B build_core -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake
390-
cmake --build build_core --target install --parallel 4
389+
/opt/python/cp38-cp38/bin/cmake -S depthai-core/ -B build_core -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake
390+
/opt/python/cp38-cp38/bin/cmake --build build_core --target install --parallel 4
391391
echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/" >> $GITHUB_ENV
392392
393393
- name: Append build hash if not a tagged commit
@@ -418,7 +418,7 @@ jobs:
418418
# This job builds wheels for ARM64 arch
419419
build-linux-arm64:
420420
needs: build-docstrings
421-
runs-on: [self-hosted, linux, ARM64]
421+
runs-on: ubuntu-24.04-arm
422422
container:
423423
image: quay.io/pypa/manylinux_2_28_aarch64:latest
424424
env:
@@ -434,7 +434,7 @@ jobs:
434434
run: yum install -y --disableplugin=fastestmirror libusb1-devel
435435
- name: Installing cmake dependency
436436
run: |
437-
/opt/python/cp38-cp38/bin/python3.8 -m pip install cmake
437+
/opt/python/cp38-cp38/bin/python3.8 -m pip install "cmake<4"
438438
ln -s /opt/python/cp38-cp38/bin/cmake /bin/
439439
- name: Create folder structure
440440
run: mkdir -p wheelhouse/audited/
@@ -448,8 +448,8 @@ jobs:
448448

449449
- name: Build and install depthai-core
450450
run: |
451-
cmake -S depthai-core/ -B build_core -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake
452-
cmake --build build_core --target install --parallel 1
451+
/opt/python/cp38-cp38/bin/cmake -S depthai-core/ -B build_core -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake
452+
/opt/python/cp38-cp38/bin/cmake --build build_core --target install --parallel 4
453453
echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/" >> $GITHUB_ENV
454454
455455
- name: Append build hash if not a tagged commit

0 commit comments

Comments
 (0)