Skip to content

Commit 3da837d

Browse files
committed
TMP: manually add CI fixes from 'main'
1 parent 15ec6ac commit 3da837d

File tree

1 file changed

+24
-18
lines changed

1 file changed

+24
-18
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ jobs:
6767
needs: build-docstrings
6868
strategy:
6969
matrix:
70-
os: [ubuntu-latest, windows-latest, macos-latest]
70+
os: [ubuntu-latest, windows-latest, macos-14]
7171
runs-on: ${{ matrix.os }}
7272
steps:
7373
- name: Print home directory
7474
run: echo Home directory inside container $HOME
7575
- name: Setup cmake
76-
if: matrix.os == 'macos-latest'
76+
if: matrix.os == 'macos-14'
7777
uses: jwlawson/actions-setup-cmake@v1.13
7878
with:
7979
cmake-version: '3.29.x'
@@ -113,7 +113,7 @@ jobs:
113113
sudo apt install libusb-1.0-0-dev
114114
115115
- name: Install dependencies (MacOS)
116-
if: matrix.os == 'macos-latest'
116+
if: matrix.os == 'macos-14'
117117
run: |
118118
python -m pip install --upgrade pip
119119
brew install libusb
@@ -136,7 +136,7 @@ jobs:
136136
needs: build-docstrings
137137
strategy:
138138
matrix:
139-
rpi-os: [rpi-buster, rpi-bullseye, rpi-bookworm]
139+
rpi-os: [rpi-bullseye, rpi-bookworm]
140140
runs-on: ${{ matrix.rpi-os }}
141141
steps:
142142
- name: Print home directory
@@ -184,7 +184,7 @@ jobs:
184184
runs-on: windows-latest
185185
strategy:
186186
matrix:
187-
python-version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12']
187+
python-version: [3.9, '3.10', '3.11', '3.12', '3.13', '3.14']
188188
python-architecture: [x64, x86]
189189
fail-fast: false
190190
steps:
@@ -207,6 +207,11 @@ jobs:
207207
- name: Select Windows SDK
208208
run: echo "CMAKE_ARGS=-DCMAKE_SYSTEM_VERSION=${{ env.CMAKE_WINDOWS_SDK_VERSION }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
209209

210+
- name: Set UTF-8 encoding
211+
run: |
212+
echo "PYTHONIOENCODING=utf-8" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
213+
echo "PYTHONUTF8=1" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
214+
210215
- name: Install dependencies
211216
run: choco install strawberryperl
212217
- name: Set up Python ${{ matrix.python-version }}
@@ -240,8 +245,8 @@ jobs:
240245
needs: build-docstrings
241246
strategy:
242247
matrix:
243-
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']
244-
os: [macos-13, macos-14] # macos-13 is x64, macos-14 is arm64
248+
python-version: [3.9, '3.10', '3.11', '3.12', '3.13', '3.14']
249+
os: [macos-14] # macos-14 is arm64 (macos-15-intel could be added later, once compilation on clang that on that image is fixed))
245250
runs-on: ${{ matrix.os }}
246251
steps:
247252
- name: Cache .hunter folder
@@ -286,7 +291,7 @@ jobs:
286291
- name: Archive wheel artifacts
287292
uses: actions/upload-artifact@v4
288293
with:
289-
name: audited-wheels
294+
name: audited-wheels-macos-${{ matrix.python-version }}-${{ matrix.os }}
290295
path: wheelhouse/audited/
291296
- name: Deploy wheels to artifactory (if not a release)
292297
if: startsWith(github.ref, 'refs/tags/v') != true
@@ -301,7 +306,7 @@ jobs:
301306
needs: build-docstrings
302307
runs-on: ubuntu-latest
303308
container:
304-
image: quay.io/pypa/manylinux_2_28_x86_64:2024.12.05-1
309+
image: quay.io/pypa/manylinux_2_28_x86_64:2025.11.10-2
305310
env:
306311
PLAT: manylinux_2_28_x86_64
307312
steps:
@@ -317,7 +322,7 @@ jobs:
317322
run: yum install -y --disableplugin=fastestmirror libusb1-devel perl-core
318323
- name: Installing cmake dependency
319324
run: |
320-
/opt/python/cp38-cp38/bin/python3.8 -m pip install cmake
325+
/opt/python/cp38-cp38/bin/python3.8 -m pip install "cmake<4.0"
321326
ln -s /opt/python/cp38-cp38/bin/cmake /bin/
322327
- name: Create folder structure
323328
run: mkdir -p wheelhouse/audited/
@@ -331,8 +336,8 @@ jobs:
331336

332337
- name: Build and install depthai-core
333338
run: |
334-
cmake -S depthai-core/ -B build_core -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake
335-
cmake --build build_core --target install --parallel 4
339+
/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
340+
/opt/python/cp38-cp38/bin/cmake --build build_core --target install --parallel 4
336341
echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/" >> $GITHUB_ENV
337342
338343
- name: Append build hash if not a tagged commit
@@ -341,10 +346,11 @@ jobs:
341346

342347
- name: Building source distribution
343348
run: |
349+
/opt/python/cp38-cp38/bin/python3.8 -m pip install --upgrade setuptools wheel
344350
/opt/python/cp38-cp38/bin/python3.8 setup.py sdist --formats=gztar
345351
mv dist/* wheelhouse/audited/
346352
- name: Build wheels
347-
run: for PYBIN in /opt/python/cp3{8..12}*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done
353+
run: for PYBIN in /opt/python/cp3{9..14}*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done
348354
- name: Audit wheels
349355
run: for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat $PLAT -w wheelhouse/audited/; done
350356
- name: Archive wheel artifacts
@@ -365,7 +371,7 @@ jobs:
365371
needs: build-docstrings
366372
runs-on: ubuntu-24.04-arm
367373
container:
368-
image: quay.io/pypa/manylinux_2_28_aarch64:2024.12.05-1
374+
image: quay.io/pypa/manylinux_2_28_aarch64:2025.11.10-2
369375
env:
370376
PLAT: manylinux_2_28_aarch64
371377
# Mount local hunter cache directory, instead of transfering to Github and back
@@ -379,7 +385,7 @@ jobs:
379385
run: yum install -y --disableplugin=fastestmirror libusb1-devel perl-core
380386
- name: Installing cmake dependency
381387
run: |
382-
/opt/python/cp38-cp38/bin/python3.8 -m pip install cmake
388+
/opt/python/cp38-cp38/bin/python3.8 -m pip install "cmake<4"
383389
ln -s /opt/python/cp38-cp38/bin/cmake /bin/
384390
- name: Create folder structure
385391
run: mkdir -p wheelhouse/audited/
@@ -393,15 +399,15 @@ jobs:
393399

394400
- name: Build and install depthai-core
395401
run: |
396-
cmake -S depthai-core/ -B build_core -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake
397-
cmake --build build_core --target install --parallel 4
402+
/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
403+
/opt/python/cp38-cp38/bin/cmake --build build_core --target install --parallel 4
398404
echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/" >> $GITHUB_ENV
399405
400406
- name: Append build hash if not a tagged commit
401407
if: startsWith(github.ref, 'refs/tags/v') != true
402408
run: echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV
403409
- name: Building wheels
404-
run: for PYBIN in /opt/python/cp3{7..12}*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done
410+
run: for PYBIN in /opt/python/cp3{9..14}*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done
405411
- name: Auditing wheels
406412
run: for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat $PLAT -w wheelhouse/audited/; done
407413
- name: Archive wheel artifacts

0 commit comments

Comments
 (0)