-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1.07 KB
/
Copy pathci.yml
File metadata and controls
38 lines (31 loc) · 1.07 KB
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
# Validate .deb builds on push/PR. Does not publish artifacts.
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
# Supply-chain hardening: default least privilege for all jobs.
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-deb:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Install packaging tools
run: sudo apt-get update && sudo apt-get install -y rsync dpkg-dev
- name: Build .deb
run: ./build-deb.sh
- name: Verify package metadata
run: |
deb="$(ls -1 build/debian/streamdeck-openpnp_*_all.deb | head -1)"
test -n "$deb"
dpkg-deb -I "$deb" | grep -q 'Package: streamdeck-openpnp'
dpkg-deb -I "$deb" | grep -q 'libnotify-bin'
dpkg-deb -c "$deb" | grep -q './usr/bin/streamdeck-run'
echo "Built: $deb ($(du -h "$deb" | cut -f1))"