Attempt to create DEB package #8
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
on: push | |
jobs: | |
deb-package: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Alfred Sunray Binary | |
uses: pguyot/arm-runner-action@v2 | |
with: | |
bind_mount_repository: true | |
commands: | | |
sudo apt update | |
sudo apt install -y build-essential cmake libbluetooth-dev | |
export ALFRED_CONFIG_PATH="$(pwd)/alfred/config_alfred.h" | |
cd alfred/build | |
cmake -D CONFIG_FILE="$ALFRED_CONFIG_PATH" .. | |
make | |
- name: Build Alfred Sunray DEB Package | |
run: | | |
sudo apt update | |
sudo apt install -y dpkg | |
cd alfred/build | |
mkdir -p deb/usr/bin deb/DEBIAN | |
cp sunray deb/usr/bin | |
cat << EOF > deb/DEBIAN/control | |
Package: sunray | |
Version: 1.0 | |
Maintainer: Todo <todo@local.host> | |
Architecture: aarch64 | |
Description: Sunray firmware is an alternative Firmware (experimental) for Alfred robot with Alfred RTK conversion kit | |
Depends: libbluetooth | |
EOF | |
cd deb | |
dpkg-deb --root-owner-group --build sunray | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: sunray.deb | |
path: alfred/build/deb/sunray.deb |