forked from jncronin/Azure-Kinect-Sensor-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.23 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build packages
on:
push: {}
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- 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 amd64 packages
run: |
docker run --platform linux/arm64 -v $PWD:/ws \
-w /ws \
--entrypoint /bin/bash \
ghcr.io/fortefibre/buildroot:humble-aarch64 \
-c "bash .github/build.bash"
mkdir -p artifacts
cp build/*.deb artifacts/
docker rmi ghcr.io/fortefibre/buildroot:humble-aarch64
sudo rm -rf build/
- name: Build amd64 packages
run: |
docker run -v $PWD:/ws \
-w /ws \
--entrypoint /bin/bash \
ghcr.io/fortefibre/buildroot:humble-amd64 \
-c "bash .github/build.bash"
mkdir -p artifacts
cp build/*.deb artifacts/
- name: Upload packages
uses: actions/upload-artifact@v2
with:
name: packages
path: artifacts/*.deb