Set up Debian packaging
Some checks failed
Build / build (push) Has been cancelled

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

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 gcc pkg-config \
libfftw3-dev libsamplerate0-dev libjack-jackd2-dev libx11-dev libxrender-dev libvlc-dev
- uses: actions/checkout@v4
- run: make
- 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
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