Skip to content

Commit

Permalink
Add arm64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
f0reachARR committed Mar 22, 2024
1 parent e81f104 commit bde9708
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/build.bash
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
26 changes: 26 additions & 0 deletions .github/workflows/build-arm64.yml
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

0 comments on commit bde9708

Please sign in to comment.