honeywell-config/.forgejo/workflows/package.yml
s3lph 06d98f296f
Some checks failed
/ build_debian (push) Failing after 27s
fix(ci): install libusb-dev
2024-11-29 01:45:02 +01:00

32 lines
1.2 KiB
YAML

---
on: push
jobs:
build_debian:
runs-on: docker
container:
image: git.kabelsalat.ch/s3lph/package-pipeline-builder:latest
steps:
- uses: https://code.forgejo.org/actions/checkout@v4
- name: Prepare package
run: |
mkdir -p \
package/debian/honeywell-config/usr/bin \
package/debian/honeywell-config/usr/lib/udev/rules.d/
sed -re "s/__VERSION__/0.$(git rev-list --count ${GITHUB_REF_NAME})-1/g" -i package/debian/barcode-utils/DEBIAN/control
apt install --yes libusb-dev
make
strip honeywell-config
cp honeywell-config package/debian/honeywell-config/usr/bin
cp 99-honeywell.rules package/debian/honeywell-config/usr/lib/udev/rules.d/
find package/debian/honeywell-config -exec touch -m -d "$(git log -1 --format="%aI")" {} \;
cd package/debian/
dpkg-deb --build honeywell-config .
- uses: https://git.kabelsalat.ch/s3lph/forgejo-action-debian-package-upload@v2
with:
username: ${{ secrets.API_USERNAME }}
password: ${{ secrets.API_PASSWORD }}
deb: "package/debian/*.deb"