Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
d052f99
initial deps moved to vcpkg
Serafadam Oct 25, 2024
757dfd5
optional features
Serafadam Oct 28, 2024
00ed9ef
Merge branch 'v3_visualizer_support' into v3_deps_cleanup
Serafadam Oct 28, 2024
62e9331
vcpkg ports for httplib xlink and zlib
Serafadam Oct 28, 2024
f81d04b
downloading deps from vcpkg
Serafadam Oct 29, 2024
b8524e5
httplib from main repo
Serafadam Oct 29, 2024
4a12c6d
install build essential in ci
Serafadam Oct 30, 2024
3808c2c
install make in ci
Serafadam Oct 30, 2024
7de9ad6
switch to official lz4
Serafadam Oct 30, 2024
47128fb
update workflow
Serafadam Oct 30, 2024
4bd1e16
clean build from vcpkg
Serafadam Oct 30, 2024
777ef54
custom port for rtabmap
Serafadam Oct 30, 2024
633ce8e
remove hunter gate
Serafadam Oct 31, 2024
4c265b4
fixing zlib linking and adding hunter private data method
Serafadam Oct 31, 2024
a5b46cd
lz4 from luxonis
Serafadam Oct 31, 2024
79a3b50
xlink-usb
Serafadam Oct 31, 2024
d071de8
tbb port for basalt
Serafadam Nov 4, 2024
416feae
try lz4 without w4 flag
Serafadam Nov 4, 2024
f41d1ea
cpp standard for lz4
Serafadam Nov 5, 2024
4087afe
tbb port args
Serafadam Nov 5, 2024
70c31d4
add mongoose port
Serafadam Nov 6, 2024
1fb8a95
standard for xlink
Serafadam Nov 6, 2024
aad83a0
tbb overflow patch
Serafadam Nov 6, 2024
eaa211f
custom gklib port
Serafadam Nov 6, 2024
52e4a4e
g2o port update
Serafadam Nov 6, 2024
e196c5f
enable devtoolset in manylinux x86_64
Serafadam Nov 7, 2024
42c024b
enable toolset for arm
Serafadam Nov 7, 2024
6b4e3e4
try vcpkg caching in ci
Serafadam Nov 7, 2024
5e89bbb
typo fix
Serafadam Nov 7, 2024
97c88d0
update basalt ports
Serafadam Nov 7, 2024
a665548
new manylinux, opencv and pcl from vcpkg
Serafadam Nov 7, 2024
e9eafdc
lz4 name change
Serafadam Nov 7, 2024
f9d94fc
disable features for opencv
Serafadam Nov 7, 2024
e76c50c
switch order
Serafadam Nov 7, 2024
54967cd
pcl and oepncv from vcpkg in docstrings ci
Serafadam Nov 7, 2024
c9e6494
use mainstream lz4
Serafadam Nov 8, 2024
474abb1
update g2o commit
Serafadam Nov 8, 2024
ab58a4b
comment out pcl library dirs for now
Serafadam Nov 8, 2024
5535e74
pcl include dirs update
Serafadam Nov 8, 2024
e206d79
update workflow
Serafadam Nov 8, 2024
128c878
Update vcpkg.json
Serafadam Nov 8, 2024
43f1650
remove hunter install dependencies
Serafadam Nov 8, 2024
fce860c
Merge branch 'v3_deps_cleanup' of github.com:luxonis/depthai-core int…
Serafadam Nov 8, 2024
67ea4dc
updates in xlink and cpr ports
Serafadam Nov 11, 2024
999ae87
disable basalt on windows for now
Serafadam Nov 11, 2024
cd7cc4c
Merge branch 'v3_develop' into v3_deps_cleanup
Serafadam Nov 11, 2024
339579b
update to latest v3_develop
Serafadam Nov 11, 2024
73334ec
xlink hunter bump
Serafadam Nov 11, 2024
84db9ff
typo
Serafadam Nov 11, 2024
760f608
add eol
Serafadam Nov 11, 2024
6c677f8
xlink to latest
Serafadam Nov 11, 2024
ba181c9
try config fixup
Serafadam Nov 11, 2024
0ffa613
libarchive port, lz4 from vcpkg
Serafadam Nov 12, 2024
42b7de6
xlink hunter bump
Serafadam Nov 12, 2024
968090e
pybind11 update
Serafadam Nov 12, 2024
2675f34
update pybind11, split manylinux jobs to fix space issues
Serafadam Nov 12, 2024
402925d
Update python-main.yml
Serafadam Nov 12, 2024
cb1dfe3
move find pybind
Serafadam Nov 12, 2024
be78865
Merge branch 'v3_deps_cleanup' of github.com:luxonis/depthai-core int…
Serafadam Nov 12, 2024
9663a67
try fixing python matrix
Serafadam Nov 12, 2024
106cfd5
revert pybind, remove depthai-core install from manylinux
Serafadam Nov 12, 2024
6c17ad4
move ssl options
Serafadam Nov 12, 2024
91ac591
remove double include
Serafadam Nov 12, 2024
355ce28
fp16 from mainstream
Serafadam Nov 13, 2024
8d5a65c
Revert "fp16 from mainstream"
Serafadam Nov 13, 2024
27d1b7f
libarchive update
Serafadam Nov 13, 2024
a7a1fe4
update foxglove module
Serafadam Nov 13, 2024
20c504f
fmt 11, highgui opencv component
Serafadam Nov 14, 2024
fa6b3f0
xlink windows patch, revert spdlog
Serafadam Nov 14, 2024
ac585c6
fix lower fmt version
Serafadam Nov 14, 2024
174db68
windows link patch for xlink
Serafadam Nov 14, 2024
042107f
some debug prints
Serafadam Nov 14, 2024
63f541f
try with timeouts
Serafadam Nov 14, 2024
a8c267f
comment out resource bindings for now
Serafadam Nov 14, 2024
4153d0a
try adding conditions in resources
Serafadam Nov 14, 2024
110fe3b
comment out resource preload in depthai initialization
Serafadam Nov 15, 2024
02947c5
typo in manylinux arm
Serafadam Nov 15, 2024
1e0cd98
try ci with pcl and rtabmap
Serafadam Nov 15, 2024
8048456
basalt on windows
Serafadam Nov 15, 2024
2dc9bad
remove suitsparse from g2o
Serafadam Nov 18, 2024
19a5831
g2o opengl patch
Serafadam Nov 18, 2024
ed6448b
update g2o gl patch
Serafadam Nov 18, 2024
ff050fe
update components on arm ci
Serafadam Nov 18, 2024
90eb95d
remove openmp dep
Serafadam Nov 18, 2024
dc029aa
disable rtabmap on windows and linux arm
Serafadam Nov 19, 2024
21e060b
bindings gen fix
Serafadam Nov 19, 2024
ca17259
remove prints in stubs gen
Serafadam Nov 19, 2024
aa2ea6e
set jobs num to 2 for vcpkg
Serafadam Nov 19, 2024
01831c0
disable basalt on windows ci
Serafadam Nov 19, 2024
bc08483
update rtabmap on windows
Serafadam Nov 19, 2024
aa53ffd
remove hunter references
Serafadam Nov 19, 2024
89d3d1c
cache in tests
Serafadam Nov 20, 2024
4dafa03
basalt conf fixup
Serafadam Nov 20, 2024
4354101
Merge branch 'v3_develop' into v3_deps_cleanup
Serafadam Nov 20, 2024
88b8e0b
opencv with png support for failing test
Serafadam Nov 20, 2024
36789ce
remove gklib
Serafadam Nov 20, 2024
adf0f28
update xlink libusb
Serafadam Nov 20, 2024
ed61660
update opencv port
Serafadam Nov 20, 2024
e8a2630
revert back
Serafadam Nov 20, 2024
08a4437
xlink libusb external, ffmpeg opencv
Serafadam Nov 21, 2024
9bcaed6
add deps for build-docstrings
Serafadam Nov 21, 2024
9c42154
ffmpeg in opencv
Serafadam Nov 25, 2024
a359c95
Merge branch 'v3_develop' into v3_deps_cleanup
Serafadam Nov 25, 2024
93b5c62
update deps
Serafadam Nov 25, 2024
9c387b1
remove sudo in testing
Serafadam Nov 25, 2024
ab4e8fa
try bumping python version
Serafadam Nov 25, 2024
b8781cc
typo
Serafadam Nov 25, 2024
6f10725
try installing jinja2 from pip
Serafadam Nov 25, 2024
dea3c19
mp4v2 config fixup
Serafadam Nov 25, 2024
44819ac
remove apt install from test workflow
Serafadam Nov 25, 2024
874f103
update deps for manylinux
Serafadam Nov 25, 2024
ff5c0ed
fix typo
Serafadam Nov 25, 2024
56c5cd4
remove pybin cmd
Serafadam Nov 25, 2024
c89e373
try jinja install separately
Serafadam Nov 26, 2024
b90bd3b
remove gstreamer, bump vcpkg baseline
Serafadam Nov 26, 2024
11d172d
update python ci
Serafadam Nov 26, 2024
f4810d4
ci update
Serafadam Nov 26, 2024
d8639bd
pytest ci update
Serafadam Nov 26, 2024
7aec666
add jinja to pyproject.toml
Serafadam Nov 27, 2024
48465c7
extra deps for manylinux
Serafadam Nov 27, 2024
50f6f73
install nasm on mac
Serafadam Nov 27, 2024
5e1b15f
basalt post install fixes
Serafadam Nov 27, 2024
f7f3a89
rtabmap for arm
Serafadam Nov 27, 2024
8f4c37c
remove osx triplet
Serafadam Nov 27, 2024
9800dfd
pr updates
Serafadam Nov 27, 2024
927a899
stock spdlog
Serafadam Nov 28, 2024
2cc7076
fix linux wheels build, fp16 from stock, python bindings & tests opts
Serafadam Nov 28, 2024
177327b
fix linux arm and linker errors on other systems
Serafadam Nov 28, 2024
6c32c1e
fix arm
Serafadam Nov 28, 2024
8777724
fixing ci on other platforms
Serafadam Nov 28, 2024
57cf12e
try fixing basalt symbols on win
Serafadam Nov 28, 2024
2cffe89
try to fix pytest
Serafadam Nov 28, 2024
060cad1
fix basalt patch
Serafadam Nov 28, 2024
e6b6747
disable basalt for win for now
Serafadam Nov 28, 2024
812ead9
Static linking by default on Windows
Nov 29, 2024
2c4436e
Try to override the static compilation of CRT for Windows
Nov 29, 2024
b3d38c7
Make static runtime library "global"
Nov 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 76 additions & 57 deletions .github/workflows/python-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
# Job which builds docstrings for the rest of the wheel builds
build-docstrings:
runs-on: ubuntu-latest
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
steps:
- name: Cache .hunter folder
uses: actions/cache@v3
Expand All @@ -33,6 +35,12 @@ jobs:
key: hunter-ubuntu-latest-v3-develop
- name: List .hunter cache directory
run: ls -a -l ~/.hunter/_Base/ || true
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- uses: actions/checkout@v3
with:
submodules: 'recursive'
Expand All @@ -44,7 +52,7 @@ jobs:
run: |
sudo apt update
python -m pip install --upgrade pip
sudo apt install libusb-1.0-0-dev libopencv-dev libpcl-dev
sudo apt install libusb-1.0-0-dev pkg-config bison autoconf libtool libxi-dev libxtst-dev libxrandr-dev libx11-dev libxft-dev libxext-dev nasm flex libudev-dev
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What VCPKG package needs these?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of these are needed for various dependencies of gtk which is required by opencv to use imshow etc. Nasm is required by ffmpeg. libudev is required by libusb

python -m pip install -r bindings/python/docs/requirements_mkdoc.txt
- name: Configure project
run: cmake -S . -B build -DDEPTHAI_BUILD_PYTHON=ON -DDEPTHAI_PYTHON_FORCE_DOCSTRINGS=ON -DDEPTHAI_BASALT_SUPPORT=ON -DDEPTHAI_PCL_SUPPORT=ON -DDEPTHAI_RTABMAP_SUPPORT=ON -DDEPTHAI_PYTHON_DOCSTRINGS_OUTPUT="$PWD/bindings/python/docstrings/depthai_python_docstring.hpp"
Expand All @@ -61,6 +69,8 @@ jobs:
# Build and test bindings
pytest:
needs: build-docstrings
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
strategy:
matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
Expand All @@ -82,6 +92,12 @@ jobs:
with:
path: C:/.hunter/
key: hunter-pytest-${{ matrix.os }}-v3-develop
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');

- uses: actions/checkout@v3
with:
Expand All @@ -103,28 +119,22 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
python -m pip install --upgrade pip
sudo apt install libusb-1.0-0-dev libopencv-dev
sudo apt install libusb-1.0-0-dev pkg-config bison autoconf libtool libxi-dev libxtst-dev libxrandr-dev libx11-dev libxft-dev libxext-dev nasm flex libudev-dev

- name: Install dependencies (MacOS)
if: matrix.os == 'macos-latest'
run: |
python -m pip install --upgrade pip
brew install libusb
brew install opencv

- name: Setup cmake
if: matrix.os == 'macos-latest'
uses: jwlawson/actions-setup-cmake@v1.13

- name: Install dependencies (Windows)
if: matrix.os == 'windows-latest'
run: |
choco install opencv
echo "OpenCV_DIR=C:\tools\opencv\build" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: Install pytest
run: |
python -m pip install pytest numpy opencv-python
python -m pip install pytest numpy opencv-python jinja2

- name: Compile
run: |
Expand Down Expand Up @@ -194,7 +204,10 @@ jobs:
python-architecture: [x64] # TODO(Morato) - re-enable x86 - it complains that OpenCV even though it's 32 bit is not compatible
fail-fast: false
env:
DEPTHAI_BUILD_BASALT: ON
DEPTHAI_BUILD_BASALT: OFF
DEPTHAI_BUILD_PCL: ON
DEPTHAI_BUILD_RTABMAP: ON
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
steps:
- name: Cache .hunter folder
uses: actions/cache@v3
Expand All @@ -204,6 +217,12 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');

- uses: actions/download-artifact@v3
with:
Expand All @@ -212,18 +231,6 @@ jobs:
- name: Specify docstring to use while building the wheel
run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/bindings/python/docstrings/depthai_python_docstring.hpp" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: Install dependencies for x86
if: matrix.python-architecture == 'x86'
run: |
choco install opencv --x86
echo "OpenCV_DIR=C:\tools\opencv\build" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: Install dependencies for x64
if: matrix.python-architecture == 'x64'
run: |
choco install opencv
echo "OpenCV_DIR=C:\tools\opencv\build" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: Select Windows SDK
run: echo "CMAKE_ARGS=-DCMAKE_SYSTEM_VERSION=${{ env.CMAKE_WINDOWS_SDK_VERSION }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

Expand Down Expand Up @@ -262,11 +269,11 @@ jobs:
os: [macos-13, macos-14] # macos-13 is x64, macos-14 is arm64
fail-fast: false
runs-on: ${{ matrix.os }}
# env:
# TODO(Morato) - re-enable basalt, pcl, rtabmap after everything is ported
# DEPTHAI_BUILD_BASALT: ON
# DEPTHAI_BUILD_PCL: ON
# DEPTHAI_BUILD_RTABMAP: ON
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
DEPTHAI_BUILD_BASALT: ON
DEPTHAI_BUILD_PCL: ON
DEPTHAI_BUILD_RTABMAP: ON
steps:
- name: Cache .hunter folder
uses: actions/cache@v3
Expand All @@ -277,6 +284,12 @@ jobs:
run: |
ls -a -l ~/.hunter/_Base/ || true
echo "PATH=$PATH"
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');

- uses: actions/checkout@v3
with:
Expand All @@ -300,8 +313,7 @@ jobs:
run: |
python -m pip install --upgrade pip
brew install libusb
brew install opencv
brew install pcl
brew install nasm
python -m pip install delocate
- name: Building wheels
run: cd bindings/python && python -m pip wheel . -w ./wheelhouse/ --verbose
Expand Down Expand Up @@ -388,30 +400,34 @@ jobs:
needs: build-docstrings
runs-on: ubuntu-latest
container:
image: mmorato/depthai-manylinux2014:0.4 # TODO(mmorato) temporary location, push to luxonis namespace
image: quay.io/pypa/manylinux_2_28_x86_64
env:
PLAT: manylinux2014_x86_64
PLAT: manylinux_2_28_x86_64
strategy:
matrix:
python-set: ["7..9", "10..12"]
python-set: ["7", "8", "9", "10", "11", "12"]
env:
# workaround required for cache@v3, https://github.com/actions/cache/issues/1428
# to be removed when upgrading the manylinux image
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
DEPTHAI_BUILD_BASALT: ON
DEPTHAI_BUILD_PCL: ON
DEPTHAI_BUILD_RTABMAP: ON
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
steps:
- name: Cache .hunter folder
uses: actions/cache@v3
with:
path: ~/.hunter
key: hunter-x86_64-v3-develop
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Installing libusb1-devel dependency
run: yum install -y --disableplugin=fastestmirror libusb1-devel perl-core curl zip unzip tar ninja-build
run: yum install -y libusb1-devel perl-core curl zip unzip tar ninja-build zlib-devel curl-devel xcb-util-renderutil-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-wm-devel mesa-libGL-devel libxkbcommon-devel libxkbcommon-x11-devel libXi-devel libXrandr-devel libXtst-devel libudev-devel lapack-devel nasm libtool autoconf automake
- name: Installing cmake dependency
run: |
cd bindings/python
Expand All @@ -427,12 +443,6 @@ jobs:
- name: Specify docstring to use while building the wheel
run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/bindings/python/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV

- name: Build and install depthai-core
run: |
cmake -S . -B build_core -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake
cmake --build build_core --target install --parallel 4
echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/" >> $GITHUB_ENV

- name: Append build hash if not a tagged commit
Comment on lines 445 to 446
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed for a reason?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if it was needed? Cache is now separate for each job

if: startsWith(github.ref, 'refs/tags/v') != true
run: echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV
Expand All @@ -443,7 +453,9 @@ jobs:
/opt/python/cp38-cp38/bin/python3.8 setup.py sdist --formats=gztar
mv dist/* wheelhouse/audited/
- name: Build wheels
run: cd bindings/python && for PYBIN in /opt/python/cp3{${{ matrix.python-set }}}*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done
run: |
cd bindings/python && for PYBIN in /opt/python/cp3${{ matrix.python-set }}*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done

- name: Audit wheels
run: cd bindings/python && for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat $PLAT -w wheelhouse/audited/; done
- name: Archive wheel artifacts
Expand All @@ -465,35 +477,47 @@ jobs:
runs-on: [self-hosted, linux, ARM64]
timeout-minutes: 1440 # Set timeout to 24 hours
container:
image: mmorato/depthai-manylinux2014_aarch64:0.4
image: quay.io/pypa/manylinux_2_28_aarch64
env:
PLAT: manylinux2014_aarch64
PLAT: manylinux_2_28_aarch64
# Mount local hunter cache directory, instead of transfering to Github and back
volumes:
- /.hunter:/github/home/.hunter
strategy:
matrix:
python-set: ["7..9", "10..12"]
python-set: ["7", "8", "9", "10", "11", "12"]
env:
# workaround required for cache@v3, https://github.com/actions/cache/issues/1428
# to be removed when upgrading the manylinux image
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
DEPTHAI_VCPKG_CFLAGS: "-std=c99" # Needed so vpckg can bootstrap itself with the old GCC on the manylinux image
VCPKG_FORCE_SYSTEM_BINARIES: "1" # Needed so vpckg can bootstrap itself
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
DEPTHAI_BUILD_BASALT: ON
DEPTHAI_BUILD_PCL: ON
DEPTHAI_BUILD_RTABMAP: ON
VCPKG_MAX_CONCURRENCY: "2"
steps:
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Installing libusb1-devel dependency
run: yum install -y --disableplugin=fastestmirror libusb1-devel perl-core curl zip unzip tar ninja-build
run: yum install -y libusb1-devel perl-core curl zip unzip tar zlib-devel curl-devel xcb-util-renderutil-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-wm-devel mesa-libGL-devel libxkbcommon-devel libxkbcommon-x11-devel libXi-devel libXrandr-devel libXtst-devel libudev-devel lapack-devel nasm libtool autoconf automake
- name: Installing cmake dependency
run: |
cd bindings/python
/opt/python/cp38-cp38/bin/python3.8 -m pip install cmake
ln -s /opt/python/cp38-cp38/bin/cmake /bin/
- name: Setup ninja required for arm64 builds
run: |
git clone https://github.com/ninja-build/ninja.git
cd ninja
git checkout v1.10.2
cmake -Bbuild-cmake
cmake --build build-cmake --target install
- name: Create folder structure
run: cd bindings/python && mkdir -p wheelhouse/audited/

Expand All @@ -504,17 +528,12 @@ jobs:
- name: Specify docstring to use while building the wheel
run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/bindings/python/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV

- name: Build and install depthai-core
run: |
cmake -S . -B build_core -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake
cmake --build build_core --target install --parallel 4
echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/" >> $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 wheels
run: cd bindings/python && for PYBIN in /opt/python/cp3{${{ matrix.python-set }}}*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done
run: |
cd bindings/python && for PYBIN in /opt/python/cp3${{ matrix.python-set }}*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done
- name: Auditing wheels
run: cd bindings/python && for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat $PLAT -w wheelhouse/audited/; done
- name: Archive wheel artifacts
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/test.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:

# Testing
test:
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
strategy:
matrix:
# os: ['windows', 'macos', 'linux']
Expand All @@ -42,6 +44,12 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');

- name: Create virtual environment
run: |
Expand Down Expand Up @@ -72,6 +80,7 @@ jobs:
export DISPLAY=:99
xdpyinfo -display $DISPLAY >/dev/null 2>&1 || (Xvfb $DISPLAY &)
source venv/bin/activate # Activate virtual environment
python3 -m pip install jinja2
Comment thread
Serafadam marked this conversation as resolved.
cmake -S . -B build -D CMAKE_BUILD_TYPE=Release -D HUNTER_ROOT=$HOME/.hun2_${{ matrix.flavor }} -D DEPTHAI_BUILD_EXAMPLES=ON -D DEPTHAI_BUILD_TESTS=ON -D DEPTHAI_TEST_EXAMPLES=ON -D DEPTHAI_BUILD_PYTHON=ON -D DEPTHAI_PYTHON_TEST_EXAMPLES=ON -D DEPTHAI_PYTHON_ENABLE_EXAMPLES=ON
cmake --build build --parallel 4 --config Release
cd tests
Expand Down
Loading