diff --git a/.github/build.bash b/.github/build.bash new file mode 100644 index 000000000..0d735bbea --- /dev/null +++ b/.github/build.bash @@ -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 \ No newline at end of file diff --git a/.github/workflows/build-arm64.yml b/.github/workflows/build-arm64.yml new file mode 100644 index 000000000..d7461da1f --- /dev/null +++ b/.github/workflows/build-arm64.yml @@ -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