From feae1381a6724ca630bd52cf355024a2776219a2 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Thu, 11 Jun 2026 16:15:51 +0200 Subject: [PATCH 01/21] Switch wheel uploading to AK --- .github/workflows/main.yml | 56 ++++++++++++++------------------ ci/upload-ak.sh | 28 ++++++++++++++++ ci/upload-artifactory-release.sh | 9 ----- ci/upload-artifactory.sh | 9 ----- 4 files changed, 53 insertions(+), 49 deletions(-) create mode 100755 ci/upload-ak.sh delete mode 100755 ci/upload-artifactory-release.sh delete mode 100755 ci/upload-artifactory.sh diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1f6bbe234..7b7a41c0d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -169,13 +169,12 @@ jobs: with: name: audited-wheels-${{ matrix.rpi-os }} path: wheelhouse/audited/ - - name: Deploy wheels to artifactory (if not a release) + - name: Deploy wheels to Artifact Keeper (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-artifactory.sh + run: bash ./ci/upload-ak.sh --snapshot env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} + AK_URL: ${{ secrets.AK_URL }} + AK_TOKEN: ${{ secrets.AK_TOKEN }} # This job builds wheels for Windows x86_64 arch @@ -232,13 +231,12 @@ jobs: with: name: audited-wheels-windows-${{ matrix.python-version }}-${{ matrix.python-architecture }} path: wheelhouse/audited/ - - name: Deploy wheels to artifactory (if not a release) + - name: Deploy wheels to Artifact Keeper (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-artifactory.sh + run: bash ./ci/upload-ak.sh --snapshot env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} + AK_URL: ${{ secrets.AK_URL }} + AK_TOKEN: ${{ secrets.AK_TOKEN }} # This job builds wheels for macOS x86_64 arch build-macos: @@ -293,13 +291,12 @@ jobs: with: name: audited-wheels-macos-${{ matrix.python-version }}-${{ matrix.os }} path: wheelhouse/audited/ - - name: Deploy wheels to artifactory (if not a release) + - name: Deploy wheels to Artifact Keeper (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-artifactory.sh + run: bash ./ci/upload-ak.sh --snapshot env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} + AK_URL: ${{ secrets.AK_URL }} + AK_TOKEN: ${{ secrets.AK_TOKEN }} # This job builds wheels for x86_64 arch build-linux-x86_64: @@ -358,13 +355,12 @@ jobs: with: name: audited-wheels-linux-x86_64 path: wheelhouse/audited/ - - name: Deploy wheels to artifactory (if not a release) + - name: Deploy wheels to Artifact Keeper (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-artifactory.sh + run: bash ./ci/upload-ak.sh --snapshot env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} + AK_URL: ${{ secrets.AK_URL }} + AK_TOKEN: ${{ secrets.AK_TOKEN }} # This job builds wheels for ARM64 arch build-linux-arm64: @@ -415,13 +411,12 @@ jobs: with: name: audited-wheels-linux-arm64 path: wheelhouse/audited/ - - name: Deploy wheels to artifactory (if not a release) + - name: Deploy wheels to Artifact Keeper (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-artifactory.sh + run: bash ./ci/upload-ak.sh --snapshot env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} + AK_URL: ${{ secrets.AK_URL }} + AK_TOKEN: ${{ secrets.AK_TOKEN }} release: if: startsWith(github.ref, 'refs/tags/v') @@ -458,7 +453,7 @@ jobs: draft: true - # Deploy to PyPi and Artifactory. Only when a commit is tagged + # Deploy to PyPi and Artifact Keeper. Only when a commit is tagged deploy: if: startsWith(github.ref, 'refs/tags/v') needs: [release] @@ -480,12 +475,11 @@ jobs: PYPI_SERVER: ${{ secrets.PYPI_SERVER }} PYPI_USER: ${{ secrets.PYPI_USER }} PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - - name: Run deploy to Artifactory - run: bash ./ci/upload-artifactory-release.sh + - name: Run deploy to Artifact Keeper + run: bash ./ci/upload-ak.sh --release env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} + AK_URL: ${{ secrets.AK_URL }} + AK_TOKEN: ${{ secrets.AK_TOKEN }} # notify_hil_workflow_linux_x86_64: diff --git a/ci/upload-ak.sh b/ci/upload-ak.sh new file mode 100755 index 000000000..fd86f78ec --- /dev/null +++ b/ci/upload-ak.sh @@ -0,0 +1,28 @@ +#!/bin/bash +set -euo pipefail + +: "${AK_URL:?AK_URL must be set}" +: "${AK_TOKEN:?AK_TOKEN must be set}" + +case "$1" in + --snapshot) + AK_REPO="luxonis-python-snapshot-local" + ;; + --release) + AK_REPO="luxonis-python-release-local" + ;; + *) + echo "Error: Unknown option $1" + echo "Usage: $0 [--snapshot | --release]" + exit 1 + ;; +esac + +if ! command -v ak >/dev/null 2>&1; then + curl -fsSL https://raw.githubusercontent.com/artifact-keeper/artifact-keeper-cli/main/install.sh | sh +fi + +export AK_INSTANCE="${AK_INSTANCE:-${AK_URL}}" +export AK_NO_INPUT="${AK_NO_INPUT:-1}" + +ak artifact push "$AK_REPO" 'wheelhouse/audited/*' diff --git a/ci/upload-artifactory-release.sh b/ci/upload-artifactory-release.sh deleted file mode 100755 index 6669bcace..000000000 --- a/ci/upload-artifactory-release.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -curl -fL https://getcli.jfrog.io | sh - -cd wheelhouse/audited/ || exit 1 -export PATH_PREFIX=luxonis-python-release-local/depthai - -../../jfrog config add --artifactory-url=$ARTIFACTORY_URL --user=$ARTIFACTORY_USER --password=$ARTIFACTORY_PASS -../../jfrog rt u "*" "$PATH_PREFIX/" diff --git a/ci/upload-artifactory.sh b/ci/upload-artifactory.sh deleted file mode 100755 index b00b77323..000000000 --- a/ci/upload-artifactory.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -curl -fL https://getcli.jfrog.io | sh - -cd wheelhouse/audited/ || exit 1 -export PATH_PREFIX=luxonis-python-snapshot-local/depthai - -../../jfrog config add --artifactory-url=$ARTIFACTORY_URL --user=$ARTIFACTORY_USER --password=$ARTIFACTORY_PASS -../../jfrog rt u "*" "$PATH_PREFIX/" From 21068f0e8d3a95b053f1922c45ff300d65b12c33 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Thu, 11 Jun 2026 16:27:30 +0200 Subject: [PATCH 02/21] Pin down the windows runner --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7b7a41c0d..001cfdf2a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -67,7 +67,7 @@ jobs: needs: build-docstrings strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-14] + os: [ubuntu-latest, windows-2022, macos-14] runs-on: ${{ matrix.os }} steps: - name: Print home directory @@ -78,13 +78,13 @@ jobs: with: cmake-version: '3.29.x' - name: Cache .hunter folder - if: matrix.os != 'windows-latest' + if: matrix.os != 'windows-2022' uses: actions/cache@v4 with: path: ~/.hunter/ key: hunter-pytest-${{ matrix.os }} - name: Cache .hunter folder - if: matrix.os == 'windows-latest' + if: matrix.os == 'windows-2022' uses: actions/cache@v4 with: path: C:/.hunter/ @@ -180,7 +180,7 @@ jobs: # This job builds wheels for Windows x86_64 arch build-windows-x86_64: needs: build-docstrings - runs-on: windows-latest + runs-on: windows-2022 strategy: matrix: python-version: [3.9, '3.10', '3.11', '3.12', '3.13', '3.14'] From e67594abd6344d25772b476b5d57f5183d0a4e95 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Thu, 11 Jun 2026 16:54:50 +0200 Subject: [PATCH 03/21] Merge uploading to a single job --- .github/workflows/main.yml | 45 ++++++++++++-------------------------- ci/upload-ak.sh | 37 ++++++++++++++++++++++++++----- 2 files changed, 46 insertions(+), 36 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 001cfdf2a..1132b3fbe 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -169,14 +169,6 @@ jobs: with: name: audited-wheels-${{ matrix.rpi-os }} path: wheelhouse/audited/ - - name: Deploy wheels to Artifact Keeper (if not a release) - if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-ak.sh --snapshot - env: - AK_URL: ${{ secrets.AK_URL }} - AK_TOKEN: ${{ secrets.AK_TOKEN }} - - # This job builds wheels for Windows x86_64 arch build-windows-x86_64: needs: build-docstrings @@ -231,13 +223,6 @@ jobs: with: name: audited-wheels-windows-${{ matrix.python-version }}-${{ matrix.python-architecture }} path: wheelhouse/audited/ - - name: Deploy wheels to Artifact Keeper (if not a release) - if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-ak.sh --snapshot - env: - AK_URL: ${{ secrets.AK_URL }} - AK_TOKEN: ${{ secrets.AK_TOKEN }} - # This job builds wheels for macOS x86_64 arch build-macos: needs: build-docstrings @@ -291,13 +276,6 @@ jobs: with: name: audited-wheels-macos-${{ matrix.python-version }}-${{ matrix.os }} path: wheelhouse/audited/ - - name: Deploy wheels to Artifact Keeper (if not a release) - if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-ak.sh --snapshot - env: - AK_URL: ${{ secrets.AK_URL }} - AK_TOKEN: ${{ secrets.AK_TOKEN }} - # This job builds wheels for x86_64 arch build-linux-x86_64: needs: build-docstrings @@ -355,13 +333,6 @@ jobs: with: name: audited-wheels-linux-x86_64 path: wheelhouse/audited/ - - name: Deploy wheels to Artifact Keeper (if not a release) - if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-ak.sh --snapshot - env: - AK_URL: ${{ secrets.AK_URL }} - AK_TOKEN: ${{ secrets.AK_TOKEN }} - # This job builds wheels for ARM64 arch build-linux-arm64: needs: build-docstrings @@ -411,8 +382,20 @@ jobs: with: name: audited-wheels-linux-arm64 path: wheelhouse/audited/ - - name: Deploy wheels to Artifact Keeper (if not a release) - if: startsWith(github.ref, 'refs/tags/v') != true + upload-wheels-to-ak: + if: (github.event_name == 'workflow_dispatch' || github.event_name == 'push') && !startsWith(github.ref, 'refs/tags/v') + needs: [build-linux-armhf, build-windows-x86_64, build-macos, build-linux-x86_64, build-linux-arm64] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + - uses: actions/download-artifact@v4 + with: + pattern: audited-wheels* + merge-multiple: true + path: wheelhouse/audited/ + - name: Upload wheels to Artifact Keeper run: bash ./ci/upload-ak.sh --snapshot env: AK_URL: ${{ secrets.AK_URL }} diff --git a/ci/upload-ak.sh b/ci/upload-ak.sh index fd86f78ec..933067239 100755 --- a/ci/upload-ak.sh +++ b/ci/upload-ak.sh @@ -18,11 +18,38 @@ case "$1" in ;; esac -if ! command -v ak >/dev/null 2>&1; then - curl -fsSL https://raw.githubusercontent.com/artifact-keeper/artifact-keeper-cli/main/install.sh | sh +AK_BASE_URL="${AK_URL%/}" +AK_PYPI_REPOSITORY_URL="${AK_BASE_URL}/pypi/${AK_REPO}/" +AK_PYPI_SIMPLE_URL="${AK_BASE_URL}/pypi/${AK_REPO}/simple/depthai/" + +python3 -m pip install -U pip +python3 -m pip install -U twine +python3 -m pip install -U packaging + +shopt -s nullglob +wheels=(wheelhouse/audited/*.whl) +if [ "${#wheels[@]}" -eq 0 ]; then + echo "No wheels found in wheelhouse/audited/" + exit 1 fi -export AK_INSTANCE="${AK_INSTANCE:-${AK_URL}}" -export AK_NO_INPUT="${AK_NO_INPUT:-1}" +for wheel in "${wheels[@]}"; do + echo "Uploading ${wheel}" + python3 -m twine upload \ + --repository-url "${AK_PYPI_REPOSITORY_URL}" \ + --username "__token__" \ + --password "${AK_TOKEN}" \ + "${wheel}" +done -ak artifact push "$AK_REPO" 'wheelhouse/audited/*' +index_html="$(mktemp)" +trap 'rm -f "${index_html}"' EXIT +curl -fsSL "${AK_PYPI_SIMPLE_URL}" -o "${index_html}" + +for wheel in "${wheels[@]}"; do + wheel_name="$(basename "${wheel}")" + if ! grep -Fq "${wheel_name}" "${index_html}"; then + echo "Uploaded wheel is missing from the PyPI simple index: ${wheel_name}" + exit 1 + fi +done From ec31d1b1e19cf447befeafdb0aaf027a7bcae35e Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Thu, 11 Jun 2026 18:14:05 +0200 Subject: [PATCH 04/21] Fix RPI building --- .github/workflows/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1132b3fbe..6f5cb1659 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -136,7 +136,11 @@ jobs: needs: build-docstrings strategy: matrix: - rpi-os: [rpi-bullseye, rpi-bookworm] + include: + - rpi-os: rpi-bullseye + auditwheel-plat: manylinux_2_31_armv7l + - rpi-os: rpi-bookworm + auditwheel-plat: manylinux_2_36_armv7l runs-on: ${{ matrix.rpi-os }} steps: - name: Print home directory @@ -160,7 +164,7 @@ jobs: - name: Auditing wheels and adding armv6l tag (Running on RPi, binaries compiled as armv6l) run: | # python3 -m pip install -U wheel auditwheel # Called once when setting up the runner - for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat linux_armv7l -w wheelhouse/preaudited/; done + for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat ${{ matrix.auditwheel-plat }} -w wheelhouse/preaudited/; done for whl in wheelhouse/preaudited/*.whl; do python3 -m wheel tags --platform-tag +linux_armv6l "$whl"; done mkdir -p wheelhouse/audited/ for whl in wheelhouse/preaudited/*linux_armv6l*.whl; do cp "$whl" wheelhouse/audited/$(basename $whl); done From 431ad096feb0e7504bad158a48709ee2e4831c43 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Fri, 12 Jun 2026 08:06:55 +0200 Subject: [PATCH 05/21] Fix bookworm --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6f5cb1659..452dee8bd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -140,7 +140,7 @@ jobs: - rpi-os: rpi-bullseye auditwheel-plat: manylinux_2_31_armv7l - rpi-os: rpi-bookworm - auditwheel-plat: manylinux_2_36_armv7l + auditwheel-plat: linux_armv7l runs-on: ${{ matrix.rpi-os }} steps: - name: Print home directory From 80952179c5d8c317d535f706d97e0ca736e57a5a Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Fri, 12 Jun 2026 11:38:10 +0200 Subject: [PATCH 06/21] Bump core --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index bd34eb563..ed7947a45 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit bd34eb5637640f23250170acc37f08ef11fc2c5f +Subproject commit ed7947a457bca1061bddd2bc258d8d36d9986bd4 From d24685cc43d1639f472dc936571367926c91e7b3 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Fri, 12 Jun 2026 12:24:32 +0200 Subject: [PATCH 07/21] Bump core --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index ed7947a45..eb9c7c4c5 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit ed7947a457bca1061bddd2bc258d8d36d9986bd4 +Subproject commit eb9c7c4c5ae799d560badf8eb7b492c0856a1247 From 3d423ab894629f82252189deb8da85c57328eae5 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Fri, 12 Jun 2026 13:04:59 +0200 Subject: [PATCH 08/21] Bump core --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index eb9c7c4c5..50a89e860 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit eb9c7c4c5ae799d560badf8eb7b492c0856a1247 +Subproject commit 50a89e8602dda58ab2caaaecb8874496a8c36001 From 217a45fcd978d93ecef32630659e2f7b4a41aa28 Mon Sep 17 00:00:00 2001 From: MaticTonin Date: Mon, 13 Jul 2026 09:01:36 +0200 Subject: [PATCH 09/21] Bump core --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 50a89e860..7d0f4effd 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 50a89e8602dda58ab2caaaecb8874496a8c36001 +Subproject commit 7d0f4effda98ce20a8a2033c86d110dc8b22b198 From 27dda9ea99dca6b12ca292170eb340533fd9534e Mon Sep 17 00:00:00 2001 From: MaticTonin Date: Thu, 16 Jul 2026 15:20:42 +0200 Subject: [PATCH 10/21] Bump Core --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 7d0f4effd..6bbc3bf54 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 7d0f4effda98ce20a8a2033c86d110dc8b22b198 +Subproject commit 6bbc3bf545d37ee871ba77921f1b8c714a4eba22 From 08dab4dbe0239e6430f425c261385433ffb66d5c Mon Sep 17 00:00:00 2001 From: MaticTonin Date: Mon, 20 Jul 2026 13:06:07 +0200 Subject: [PATCH 11/21] Bump core --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 6bbc3bf54..c8178eec8 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 6bbc3bf545d37ee871ba77921f1b8c714a4eba22 +Subproject commit c8178eec8b30cb3bf51ee4b85412134df6a5fc58 From e955a9d47b6fbe6e318460263ef7fc8529f345de Mon Sep 17 00:00:00 2001 From: Lucian Banu Date: Wed, 22 Jul 2026 21:21:18 +0300 Subject: [PATCH 12/21] Bump core --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 50a89e860..6b840eb46 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 50a89e8602dda58ab2caaaecb8874496a8c36001 +Subproject commit 6b840eb4640ad7203bf31fa1bdbc2513b1a2f326 From fba2dd15fc5e4bd6da7b73d1d3a6b336bd5b1d99 Mon Sep 17 00:00:00 2001 From: MaticTonin Date: Fri, 28 Aug 2026 09:57:03 +0200 Subject: [PATCH 13/21] Fix pyproject.toml --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 90ac84a91..0e9df528f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,3 @@ [build-system] -requires = ["setuptools", "wheel", "mypy", "typing-extensions", "cmake==3.25"] +# librt and ast-serialize are pinned due to python 3.13 free threading build +requires = ["setuptools", "wheel", "mypy<2.4", "librt==0.13.0", "ast-serialize==0.6.0", "typing-extensions", "cmake==3.25"] From b27e7832cd4b73bb8d5c712d53ef5cda23b0541f Mon Sep 17 00:00:00 2001 From: AljazD Date: Mon, 12 Oct 2026 10:21:18 +0200 Subject: [PATCH 14/21] Deprecate ARM Builds inside of workflows --- .github/workflows/docker-hub.yml | 6 +--- .github/workflows/main.yml | 48 ++------------------------------ .gitlab-ci.yml | 14 ---------- README.md | 2 ++ 4 files changed, 6 insertions(+), 64 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.github/workflows/docker-hub.yml b/.github/workflows/docker-hub.yml index e37415970..fa0d6b1dd 100644 --- a/.github/workflows/docker-hub.yml +++ b/.github/workflows/docker-hub.yml @@ -13,12 +13,10 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, [Linux, ARM], ubuntu-24.04-arm] + os: [ubuntu-latest, ubuntu-24.04-arm] include: - os: ubuntu-latest arch: amd64 - - os: [Linux, ARM] - arch: armv7 - os: ubuntu-24.04-arm arch: armv8 steps: @@ -77,7 +75,6 @@ jobs: docker manifest create \ luxonis/depthai-library:${{ github.sha}} \ --amend luxonis/depthai-library:${{ github.sha }}-amd64 \ - --amend luxonis/depthai-library:${{ github.sha }}-armv7 \ --amend luxonis/depthai-library:${{ github.sha }}-armv8 # Push docker manifest push luxonis/depthai-library:${{ github.sha }} @@ -88,7 +85,6 @@ jobs: docker manifest create \ luxonis/depthai-library:${{ steps.vars.outputs.short_ref }} \ --amend luxonis/depthai-library:${{ steps.vars.outputs.short_ref }}-amd64 \ - --amend luxonis/depthai-library:${{ steps.vars.outputs.short_ref }}-armv7 \ --amend luxonis/depthai-library:${{ steps.vars.outputs.short_ref }}-armv8 # Push docker manifest push luxonis/depthai-library:${{ steps.vars.outputs.short_ref }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 452dee8bd..22c47eaa8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -131,48 +131,6 @@ jobs: cmake --build build --target pytest --config Release - # This job builds wheels for armhf arch (RPi) - build-linux-armhf: - needs: build-docstrings - strategy: - matrix: - include: - - rpi-os: rpi-bullseye - auditwheel-plat: manylinux_2_31_armv7l - - rpi-os: rpi-bookworm - auditwheel-plat: linux_armv7l - runs-on: ${{ matrix.rpi-os }} - steps: - - name: Print home directory - run: echo Home directory inside container $HOME - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - - uses: actions/download-artifact@v4 - with: - name: 'docstrings' - path: docstrings - - name: Specify docstring to use while building the wheel - run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV - - - name: Append build hash if not a tagged commit - if: startsWith(github.ref, 'refs/tags/v') != true - run: echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV - - name: Building wheel - run: CMAKE_ARGS='-DDEPTHAI_ENABLE_CURL=OFF' python3 -m pip wheel . -w ./wheelhouse/ --verbose - - name: Auditing wheels and adding armv6l tag (Running on RPi, binaries compiled as armv6l) - run: | - # python3 -m pip install -U wheel auditwheel # Called once when setting up the runner - for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat ${{ matrix.auditwheel-plat }} -w wheelhouse/preaudited/; done - for whl in wheelhouse/preaudited/*.whl; do python3 -m wheel tags --platform-tag +linux_armv6l "$whl"; done - mkdir -p wheelhouse/audited/ - for whl in wheelhouse/preaudited/*linux_armv6l*.whl; do cp "$whl" wheelhouse/audited/$(basename $whl); done - - name: Archive wheel artifacts - uses: actions/upload-artifact@v4 - with: - name: audited-wheels-${{ matrix.rpi-os }} - path: wheelhouse/audited/ # This job builds wheels for Windows x86_64 arch build-windows-x86_64: needs: build-docstrings @@ -388,7 +346,7 @@ jobs: path: wheelhouse/audited/ upload-wheels-to-ak: if: (github.event_name == 'workflow_dispatch' || github.event_name == 'push') && !startsWith(github.ref, 'refs/tags/v') - needs: [build-linux-armhf, build-windows-x86_64, build-macos, build-linux-x86_64, build-linux-arm64] + needs: [build-windows-x86_64, build-macos, build-linux-x86_64, build-linux-arm64] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -407,7 +365,7 @@ jobs: release: if: startsWith(github.ref, 'refs/tags/v') - needs: [pytest, build-linux-armhf, build-windows-x86_64, build-macos, build-linux-x86_64, build-linux-arm64] + needs: [pytest, build-windows-x86_64, build-macos, build-linux-x86_64, build-linux-arm64] runs-on: ubuntu-latest steps: @@ -482,7 +440,7 @@ jobs: # client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' notify_hil_workflow: - needs: [build-linux-armhf, build-linux-x86_64] + needs: [build-linux-x86_64] runs-on: ubuntu-latest steps: - name: Dispatch an action and get the run ID diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 2257bb8d2..000000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,14 +0,0 @@ -variables: - GIT_SUBMODULE_STRATEGY: recursive - -build:armhf: - tags: - - luxonis-armhf - image: registry.gitlab.com/luxonis/depthai-crosscompile/debian-buster - stage: build - script: - - python3 -m pip wheel . -w wheelhouse/ - - for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat "linux_armv7l" -w wheelhouse/audited/; done - artifacts: - paths: - - wheelhouse/audited/ \ No newline at end of file diff --git a/README.md b/README.md index 1d4dd7953..397e57386 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ Documentation is available over at [Luxonis DepthAI API](https://docs.luxonis.co ## Installation +Automated ARM32 (ARMv6/ARMv7) builds have been discontinued for DepthAI v2. Prebuilt ARM wheels and Docker images are provided for ARM64. + Prebuilt wheels are available in [Luxonis repository](https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/) Make sure pip is upgraded ``` From bc95c7018dd400bacbdbfb3fb4466a7c2544d3b0 Mon Sep 17 00:00:00 2001 From: AljazD Date: Tue, 13 Oct 2026 09:50:28 +0200 Subject: [PATCH 15/21] Update docker dependencies --- ci/Dockerfile | 6 +++--- ci/docker_dependencies.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ci/Dockerfile b/ci/Dockerfile index d2556a699..7a6cf1aa0 100644 --- a/ci/Dockerfile +++ b/ci/Dockerfile @@ -1,6 +1,6 @@ -FROM python:3.9-bullseye +FROM python:3.11-bookworm -RUN apt-get update && apt-get install -y wget build-essential cmake pkg-config libjpeg-dev libtiff5-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev libgtk2.0-dev libgtk-3-dev libatlas-base-dev gfortran git libopencv-dev +RUN apt-get update && apt-get install -y wget build-essential cmake pkg-config libjpeg-dev libtiff-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev libgtk2.0-dev libgtk-3-dev libatlas-base-dev gfortran git libopencv-dev ADD ci/docker_dependencies.sh . RUN ./docker_dependencies.sh @@ -15,4 +15,4 @@ RUN cmake -S /depthai-python/depthai-core -B /build -D CMAKE_BUILD_TYPE=Release RUN cmake --build /build --parallel 4 --config Relase --target install # Install Python library -RUN cd /depthai-python && python3 -m pip install . \ No newline at end of file +RUN cd /depthai-python && python3 -m pip install . diff --git a/ci/docker_dependencies.sh b/ci/docker_dependencies.sh index d3cbfc291..0b7cb68df 100755 --- a/ci/docker_dependencies.sh +++ b/ci/docker_dependencies.sh @@ -17,12 +17,12 @@ readonly ubuntu_pkgs=( libavcodec-dev libavformat-dev libswscale-dev - libtbb2 + libtbb12 libtbb-dev libjpeg-dev libpng-dev libtiff-dev - libdc1394-22-dev + libdc1394-dev # https://stackoverflow.com/questions/55313610 ffmpeg libsm6 @@ -37,7 +37,7 @@ readonly ubuntu_arm_pkgs=( libhdf5-dev libatlas-base-dev # https://github.com/EdjeElectronics/TensorFlow-Object-Detection-on-the-Raspberry-Pi/issues/18#issuecomment-433953426 - libilmbase-dev + libimath-dev libopenexr-dev libgstreamer1.0-dev ) From a34adf573be385a46b19be282de2df99e556b7fa Mon Sep 17 00:00:00 2001 From: aljazkonec1 Date: Tue, 17 Nov 2026 15:09:22 +0100 Subject: [PATCH 16/21] CI: use ubuntu-24.04 and macos-15 runners ubuntu-latest is now Ubuntu 26.04, which has no Python 3.8 for actions/setup-python (build-docstrings and the release version check failed). GitHub retired the macos-14 image. --- .github/workflows/main.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 45f4c8d81..db14a4d3f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,13 +29,13 @@ jobs: # Job which builds docstrings for the rest of the wheel builds build-docstrings: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Cache .hunter folder uses: actions/cache@v4 with: path: ~/.hunter - key: hunter-ubuntu-latest + key: hunter-ubuntu-24.04 - name: List .hunter cache directory run: ls -a -l ~/.hunter/_Base/ || true - uses: actions/checkout@v4 @@ -67,13 +67,13 @@ jobs: needs: build-docstrings strategy: matrix: - os: [ubuntu-latest, windows-2022, macos-14] + os: [ubuntu-24.04, windows-2022, macos-15] runs-on: ${{ matrix.os }} steps: - name: Print home directory run: echo Home directory inside container $HOME - name: Setup cmake - if: matrix.os == 'macos-14' + if: matrix.os == 'macos-15' uses: jwlawson/actions-setup-cmake@v1.13 with: cmake-version: '3.29.x' @@ -107,13 +107,13 @@ jobs: python-version: "3.10" - name: Install dependencies (Ubuntu) - if: matrix.os == 'ubuntu-latest' + if: matrix.os == 'ubuntu-24.04' run: | python -m pip install --upgrade pip sudo apt install libusb-1.0-0-dev - name: Install dependencies (MacOS) - if: matrix.os == 'macos-14' + if: matrix.os == 'macos-15' run: | python -m pip install --upgrade pip brew install libusb @@ -191,7 +191,7 @@ jobs: strategy: matrix: python-version: [3.9, '3.10', '3.11', '3.12', '3.13', '3.14'] - os: [macos-14] # macos-14 is arm64 (macos-15-intel could be added later, once compilation on clang that on that image is fixed)) + os: [macos-15] # macos-15 is arm64 (macos-15-intel could be added later, once compilation on clang that on that image is fixed)) runs-on: ${{ matrix.os }} steps: - name: Cache .hunter folder @@ -241,7 +241,7 @@ jobs: # This job builds wheels for x86_64 arch build-linux-x86_64: needs: build-docstrings - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 container: image: quay.io/pypa/manylinux_2_28_x86_64:2025.11.10-2 env: @@ -347,7 +347,7 @@ jobs: upload-wheels-to-ak: if: (github.event_name == 'workflow_dispatch' || github.event_name == 'push') && !startsWith(github.ref, 'refs/tags/v') needs: [build-windows-x86_64, build-macos, build-linux-x86_64, build-linux-arm64] - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 with: @@ -366,7 +366,7 @@ jobs: release: if: startsWith(github.ref, 'refs/tags/v') needs: [pytest, build-windows-x86_64, build-macos, build-linux-x86_64, build-linux-arm64] - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 @@ -402,7 +402,7 @@ jobs: deploy: if: startsWith(github.ref, 'refs/tags/v') needs: [release] - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 with: @@ -429,7 +429,7 @@ jobs: # notify_hil_workflow_linux_x86_64: # needs: [build-linux-x86_64] - # runs-on: ubuntu-latest + # runs-on: ubuntu-24.04 # steps: # - name: Repository Dispatch # uses: peter-evans/repository-dispatch@v2 @@ -441,7 +441,7 @@ jobs: notify_hil_workflow: needs: [build-linux-x86_64] - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Dispatch an action and get the run ID uses: codex-/return-dispatch@v1 From 8250b6d0a5c57228f01caf63f4b0aec872e5162f Mon Sep 17 00:00:00 2001 From: aljazkonec1 Date: Tue, 17 Nov 2026 15:28:03 +0100 Subject: [PATCH 17/21] CI: build with -Dfdopen=fdopen on macOS 15 (zlib 1.2.11) --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index db14a4d3f..3ff2a6f98 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -117,6 +117,7 @@ jobs: run: | python -m pip install --upgrade pip brew install libusb + echo "CFLAGS=-Dfdopen=fdopen" >> $GITHUB_ENV - name: Install pytest run: | @@ -228,7 +229,9 @@ jobs: brew install libusb python -m pip install delocate wheel - name: Set macos deployment target - run: echo "MACOSX_DEPLOYMENT_TARGET=10.9" >> $GITHUB_ENV + run: | + echo "MACOSX_DEPLOYMENT_TARGET=10.9" >> $GITHUB_ENV + echo "CFLAGS=-Dfdopen=fdopen" >> $GITHUB_ENV - name: Building wheels run: python -m pip wheel . -w ./wheelhouse/ --verbose - name: Auditing wheels From 8f98404ef94535b99c233b58b2d58ba9bc1cb43f Mon Sep 17 00:00:00 2001 From: aljazkonec1 Date: Tue, 17 Nov 2026 15:39:57 +0100 Subject: [PATCH 18/21] CI: set SDKROOT on macOS 15 (OpenSSL link) --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3ff2a6f98..50c25e1b7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -118,6 +118,7 @@ jobs: python -m pip install --upgrade pip brew install libusb echo "CFLAGS=-Dfdopen=fdopen" >> $GITHUB_ENV + echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV - name: Install pytest run: | @@ -232,6 +233,7 @@ jobs: run: | echo "MACOSX_DEPLOYMENT_TARGET=10.9" >> $GITHUB_ENV echo "CFLAGS=-Dfdopen=fdopen" >> $GITHUB_ENV + echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV - name: Building wheels run: python -m pip wheel . -w ./wheelhouse/ --verbose - name: Auditing wheels From f43cc3d6a447e5812db418c2723e131764f77d7b Mon Sep 17 00:00:00 2001 From: aljazkonec1 Date: Tue, 17 Nov 2026 15:51:08 +0100 Subject: [PATCH 19/21] CI: pass -Wl,-syslibroot on macOS 15 (Hunter OpenSSL link) --- .github/workflows/main.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 50c25e1b7..3b3307026 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -117,8 +117,7 @@ jobs: run: | python -m pip install --upgrade pip brew install libusb - echo "CFLAGS=-Dfdopen=fdopen" >> $GITHUB_ENV - echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV + echo "CFLAGS=-Dfdopen=fdopen -Qunused-arguments -Wl,-syslibroot,$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV - name: Install pytest run: | @@ -232,8 +231,7 @@ jobs: - name: Set macos deployment target run: | echo "MACOSX_DEPLOYMENT_TARGET=10.9" >> $GITHUB_ENV - echo "CFLAGS=-Dfdopen=fdopen" >> $GITHUB_ENV - echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV + echo "CFLAGS=-Dfdopen=fdopen -Qunused-arguments -Wl,-syslibroot,$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV - name: Building wheels run: python -m pip wheel . -w ./wheelhouse/ --verbose - name: Auditing wheels From 0a511c033a8751d7fa08aa7247b652d59d97b8bf Mon Sep 17 00:00:00 2001 From: Aljaz Konec Date: Tue, 17 Nov 2026 16:30:53 +0100 Subject: [PATCH 20/21] CI: put -isysroot before -Dfdopen=fdopen on macOS 15 (Hunter OpenSSL link) Hunter passes all C flags to OpenSSL Configure as one argument. Since 8250b6d0 that argument starts with -Dfdopen=fdopen, so Configure files all of it under CPPDEFINES, which is used only to compile. The providers/legacy.dylib link then has no SDK: "ld: library 'System' not found". Start CFLAGS with -isysroot : the argument then goes to CFLAGS, which OpenSSL also uses for its links. Remove -Qunused-arguments and -Wl,-syslibroot, which had no effect. Tested on an Apple silicon Mac (macOS 26.5, Command Line Tools, clang 21) with an empty HUNTER_ROOT and CMake 3.25: the old flags reproduce the CI link error, the new flags build and repair the cp312 wheel. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/main.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3b3307026..dfe837a71 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -117,7 +117,11 @@ jobs: run: | python -m pip install --upgrade pip brew install libusb - echo "CFLAGS=-Dfdopen=fdopen -Qunused-arguments -Wl,-syslibroot,$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV + # -Dfdopen=fdopen: zlib 1.2.11 defines fdopen() as a macro on macOS, which breaks the macOS 15 SDK. + # -isysroot must come first: Hunter passes all C flags to OpenSSL Configure as one argument, + # and an argument that starts with -D is used only to compile, so the dylib links lose the SDK + # (ld: library 'System' not found). + echo "CFLAGS=-isysroot $(xcrun --sdk macosx --show-sdk-path) -Dfdopen=fdopen" >> $GITHUB_ENV - name: Install pytest run: | @@ -231,7 +235,8 @@ jobs: - name: Set macos deployment target run: | echo "MACOSX_DEPLOYMENT_TARGET=10.9" >> $GITHUB_ENV - echo "CFLAGS=-Dfdopen=fdopen -Qunused-arguments -Wl,-syslibroot,$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV + # See the pytest job: -isysroot must come before -Dfdopen=fdopen (Hunter OpenSSL link). + echo "CFLAGS=-isysroot $(xcrun --sdk macosx --show-sdk-path) -Dfdopen=fdopen" >> $GITHUB_ENV - name: Building wheels run: python -m pip wheel . -w ./wheelhouse/ --verbose - name: Auditing wheels From 91f48741699c99dab21253d9b3981d6d49834b71 Mon Sep 17 00:00:00 2001 From: aljazkonec1 Date: Tue, 17 Nov 2026 16:43:32 +0100 Subject: [PATCH 21/21] CI: remove Homebrew libpsl on macOS 15 (CURL used Homebrew OpenSSL headers) --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dfe837a71..ffc4429a2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -117,6 +117,7 @@ jobs: run: | python -m pip install --upgrade pip brew install libusb + brew uninstall --ignore-dependencies libpsl || true # -Dfdopen=fdopen: zlib 1.2.11 defines fdopen() as a macro on macOS, which breaks the macOS 15 SDK. # -isysroot must come first: Hunter passes all C flags to OpenSSL Configure as one argument, # and an argument that starts with -D is used only to compile, so the dylib links lose the SDK @@ -231,6 +232,7 @@ jobs: run: | python -m pip install --upgrade pip brew install libusb + brew uninstall --ignore-dependencies libpsl || true python -m pip install delocate wheel - name: Set macos deployment target run: |