Fix #11
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
name: Build packages | |
on: | |
push: {} | |
workflow_dispatch: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: nvidia/cuda:12.3.1-devel-ubuntu22.04 | |
steps: | |
- name: Install dependencies | |
run: | | |
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 | |
- 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: | | |
mkdir build | |
cd build | |
cmake .. -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-12.3 -DCMAKE_BUILD_TYPE=Release | |
make -j | |
- name: Create packages | |
run: | | |
cd build | |
cpack -G DEB | |
- name: Upload packages | |
uses: actions/upload-artifact@v2 | |
with: | |
name: packages | |
path: build/*.deb |