Set up Debian packaging
All checks were successful
Build / build (push) Successful in 1m32s

This commit is contained in:
polyfloyd 2025-05-18 12:16:05 +02:00
parent f9813946df
commit 57e68849bb

View file

@ -0,0 +1,49 @@
name: Build
on:
push:
branches:
- main
jobs:
build:
runs-on: docker
container:
image: debian:bookworm
steps:
- run: |-
apt update
apt install -y \
nodejs git curl make g++ pkg-config \
libfftw3-dev libsamplerate0-dev libjack-jackd2-dev libx11-dev libxrender-dev libvlc-dev liburiparser-dev
- uses: actions/checkout@v4
- run: make all
- name: Build Debian package
run: |-
mkdir -p deb/DEBIAN
cat <<EOF | tee deb/DEBIAN/control
Package: bitvis
Version: 0.$(date --date="@$(git show -s --format='%ct' HEAD)" '+%4Y%m%d.%H%M%S')
Section: base
Priority: optional
Architecture: amd64
Maintainer: polyfloyd <floy@polyfloyd.net>, Bob van Loosen <bob.loosen@gmail.com>
Description: Audio visualizer for the bitpanel
Depends: libfftw3-3, libsamplerate0, libjack-jackd2, libx11-6, libxrender1, libvlc5, liburiparser1
EOF
install -D -m 0755 build/bin/bitvis deb/usr/bin/bitvis
dpkg-deb --build deb bitvis.deb
- name: Deploy Debian package
run: |-
curl \
--fail \
--user ${{ secrets.PKG_RELEASE_CREDENTIALS }} \
--upload-file bitvis.deb \
$GITHUB_SERVER_URL/api/packages/$GITHUB_REPOSITORY_OWNER/debian/pool/stable/main/upload