orbbec ci

This commit is contained in:
matlabbe
2026-06-28 14:41:35 -07:00
parent 143f4a744b
commit ecda4f5e81
3 changed files with 64 additions and 9 deletions
+30 -6
View File
@@ -26,16 +26,16 @@ jobs:
include:
- build_name: macos-sequoia-intel
os: macos-15-intel
extra_cmake_def: '-DBUILD_AS_BUNDLE=ON'
extra_cmake_def: '-DBUILD_AS_BUNDLE=ON -DWITH_ORBBEC_SDK=ON'
- build_name: macos-sequoia-apple-silicon
os: macos-15
extra_cmake_def: '-DBUILD_AS_BUNDLE=ON'
extra_cmake_def: '-DBUILD_AS_BUNDLE=ON -DWITH_ORBBEC_SDK=ON'
- build_name: macos-tahoe-intel
os: macos-26-intel
extra_cmake_def: '-DBUILD_AS_BUNDLE=ON'
extra_cmake_def: '-DBUILD_AS_BUNDLE=ON -DWITH_ORBBEC_SDK=ON'
- build_name: macos-tahoe-apple-silicon
os: macos-26
extra_cmake_def: '-DBUILD_AS_BUNDLE=ON'
extra_cmake_def: '-DBUILD_AS_BUNDLE=ON -DWITH_ORBBEC_SDK=ON'
steps:
- uses: actions/checkout@v4
@@ -43,7 +43,7 @@ jobs:
- name: Install Brew Dependencies
run: |
# Update brew and install from Brewfile if present, or specific packages
brew install pcl opencv octomap g2o pdal yaml-cpp
brew install pcl opencv octomap g2o pdal yaml-cpp librealsense libfreenect libusb
- name: Resolve dependency versions
id: depver
@@ -109,7 +109,31 @@ jobs:
git clone --depth 1 --branch 1.4.4 https://github.com/ethz-asl/libpointmatcher.git "$SRC/libpointmatcher"
cd "$SRC/libpointmatcher"
git apply "$PATCHES/libpointmatcher-1.4.4-boost.patch"
cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_PREFIX_PATH="$STAGE/usr/local"
cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_PREFIX_PATH="$STAGE/usr/local" -DBUILD_EVALUATIONS=OFF -DBUILD_EXAMPLES=OFF
cmake --build build -j$NPROC
DESTDIR="$STAGE" cmake --install build
# --- orbbec SDK ---
git clone --depth 1 --branch v2.8.7 https://github.com/orbbec/OrbbecSDK_v2.git "$SRC/OrbbecSDK_v2"
cd "$SRC/OrbbecSDK_v2"
git apply "$PATCHES/orbbecsdk-2.8.7-cmake-config-install.patch"
cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_PREFIX_PATH="$STAGE/usr/local" -DOB_BUILD_DOCS=OFF -DOB_BUILD_EXAMPLES=OFF -DOB_BUILD_TOOLS=OFF -DOB_INSTALL_EXAMPLES_SOURCE=OFF
cmake --build build -j$NPROC
DESTDIR="$STAGE" cmake --install build
# --- depthai ---
git clone --depth 1 --branch v2.32.0 https://github.com/luxonis/depthai-core.git "$SRC/depthai-core"
cd "$SRC/depthai-core"
git submodule update --init --recursive
git apply "$PATCHES/depthai-2.32.0-homebrew-no-vcpkg"
PREFIX="$(brew --prefix);$(brew --prefix libarchive);$(brew --prefix openssl@3);$(brew --prefix bzip2);$(brew --prefix zlib)"
cmake -B build --preset minimal \
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
-DCMAKE_PREFIX_PATH="$STAGE/usr/local" \
-DBUILD_SHARED_LIBS=ON \
-DDEPTHAI_BOOTSTRAP_VCPKG=OFF \
-DDEPTHAI_OPENCV_SUPPORT=ON \
-DCMAKE_PREFIX_PATH="$PREFIX"
cmake --build build -j$NPROC
DESTDIR="$STAGE" cmake --install build