forked from jncronin/Azure-Kinect-Sensor-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e81f104
commit bde9708
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
export DEBIAN_FRONTEND=noninteractive | ||
apt-get update | ||
apt-get install -y libgl1-mesa-dev \ | ||
libsoundio-dev \ | ||
libjpeg-dev \ | ||
libvulkan-dev \ | ||
libx11-dev \ | ||
libxcursor-dev \ | ||
libxinerama-dev \ | ||
libxrandr-dev \ | ||
libusb-1.0-0-dev \ | ||
libssl-dev \ | ||
libudev-dev \ | ||
libopencv-dev \ | ||
mesa-common-dev \ | ||
uuid-dev \ | ||
build-essential \ | ||
cmake \ | ||
git \ | ||
pkg-config \ | ||
sudo | ||
|
||
git config --global --add safe.directory /__w/Azure-Kinect-Sensor-SDK/Azure-Kinect-Sensor-SDK | ||
git submodule update --init --recursive | ||
|
||
mkdir build | ||
cd build | ||
cmake .. -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda -DCMAKE_BUILD_TYPE=Release -DCPACK_PACKAGE_CONTACT=ForteFibre | ||
make -j | ||
|
||
cpack -G DEB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Build packages | ||
on: | ||
push: {} | ||
workflow_dispatch: {} | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Clone submodules | ||
run: | | ||
git config --global --add safe.directory /__w/Azure-Kinect-Sensor-SDK/Azure-Kinect-Sensor-SDK | ||
git submodule update --init --recursive | ||
- name: Build | ||
run: | | ||
docker run --platform linux/arm64 -v $PWD:/ws \ | ||
-w /ws \ | ||
ghcr.io/fortefibre/buildroot:humble-aarch64 \ | ||
bash .github/build.bash | ||
- name: Upload packages | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: packages | ||
path: build/*.deb |