Skip to content

Commit

Permalink
fix ci, make compute optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Serafadam committed Jan 15, 2025
1 parent b2e3d6f commit 78d697f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/python-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: |
sudo apt update
python -m pip install --upgrade pip
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
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 automake libltdl-dev
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 Down Expand Up @@ -214,6 +214,7 @@ jobs:
DEPTHAI_BUILD_BASALT: OFF
DEPTHAI_BUILD_PCL: ON
DEPTHAI_BUILD_RTABMAP: ON
DEPTHAI_BUILD_KOMPUTE: ON
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
steps:
- name: Cache .hunter folder
Expand Down Expand Up @@ -284,6 +285,7 @@ jobs:
DEPTHAI_BUILD_BASALT: ON
DEPTHAI_BUILD_PCL: ON
DEPTHAI_BUILD_RTABMAP: ON
DEPTHAI_BUILD_KOMPUTE: ON
steps:
- name: Cache .hunter folder
uses: actions/cache@v3
Expand Down Expand Up @@ -423,6 +425,7 @@ jobs:
DEPTHAI_BUILD_BASALT: ON
DEPTHAI_BUILD_PCL: ON
DEPTHAI_BUILD_RTABMAP: ON
DEPTHAI_BUILD_KOMPUTE: ON
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
steps:
- name: Cache .hunter folder
Expand Down Expand Up @@ -504,6 +507,7 @@ jobs:
DEPTHAI_BUILD_BASALT: ON
DEPTHAI_BUILD_PCL: ON
DEPTHAI_BUILD_RTABMAP: ON
DEPTHAI_BUILD_KOMPUTE: ON
VCPKG_MAX_CONCURRENCY: "2"
steps:
- name: Export GitHub Actions cache environment variables
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ option(DEPTHAI_ENABLE_PROTOBUF "Enable Protobuf support" ON)
option(DEPTHAI_BUILD_PYTHON "Build python bindings" OFF)
option(DEPTHAI_BUILD_TESTS "Build tests" OFF)
option(DEPTHAI_OPENCV_SUPPORT "Enable optional OpenCV support" ON)
OPTION(DEPTHAI_ENABLE_KOMPUTE "Enable Kompute support" ON)
OPTION(DEPTHAI_ENABLE_KOMPUTE "Enable Kompute support" OFF)
option(DEPTHAI_PCL_SUPPORT "Enable optional PCL support" OFF)
option(DEPTHAI_BOOTSTRAP_VCPKG "Automatically bootstrap VCPKG" ON)
option(DEPTHAI_MERGED_TARGET "Enable merged target build" ON)
Expand Down
2 changes: 2 additions & 0 deletions bindings/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ def build_extension(self, ext):
cmake_args += ['-DDEPTHAI_PCL_SUPPORT=ON']
if env.get('DEPTHAI_BUILD_RTABMAP') == 'ON':
cmake_args += ['-DDEPTHAI_RTABMAP_SUPPORT=ON']
if env.get('DEPTHAI_BUILD_KOMPUTE') == 'ON':
cmake_args += ['-DDEPTHAI_KOMPUTE_SUPPORT=ON']
build_args += ['--target=depthai']

# Specify output directory and python executable
Expand Down

0 comments on commit 78d697f

Please sign in to comment.