Skip to content

Commit 6bc79ae

Browse files
committed
Builds a simple debian package on tag
1 parent cba8d20 commit 6bc79ae

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

.github/workflows/package.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Debian packaging
2+
3+
on:
4+
push:
5+
tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ]
6+
7+
jobs:
8+
build:
9+
permissions:
10+
contents: write
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Install packaged dependencies
16+
run: .github/install_dependencies
17+
18+
- name: Configure
19+
run: |
20+
cmake -B ${{github.workspace}}/build_Release_NFM -DCMAKE_BUILD_TYPE=Release -DNFM=TRUE
21+
22+
- name: Build
23+
run: |
24+
VERBOSE=1 cmake --build ${{github.workspace}}/build_Release_NFM -j
25+
26+
- name: create .deb content structure
27+
run: |
28+
mkdir --parents .debpkg/lib/systemd/system/
29+
sed 's|/usr/local/bin|/usr/bin|g' init.d/rtl_airband.service > .debpkg/lib/systemd/system/rtl_airband.service
30+
31+
mkdir --parents .debpkg/usr/bin
32+
cp build_Release_NFM/src/rtl_airband .debpkg/usr/bin/
33+
34+
mkdir --parents .debpkg/usr/share/rtl_airband/config
35+
cp config/*.conf .debpkg/usr/share/rtl_airband/config/
36+
37+
mkdir --parents .debpkg/usr/share/doc/rtl_airband
38+
cp README.md LICENSE .debpkg/usr/share/doc/rtl_airband/
39+
gzip --keep --stdout NEWS.md > .debpkg/usr/share/doc/rtl_airband/NEWS.md.gz
40+
41+
- uses: jiro4989/build-deb-action@v3
42+
with:
43+
package: rtl-airband
44+
package_root: .debpkg
45+
maintainer: charlie-foxtrot
46+
version: ${{ github.ref }} # refs/tags/v*.*.*
47+
arch: 'amd64'
48+
depends: 'libc6 (>= 2.34), libconfig++9v5 (>= 1.5-0.4), libmp3lame0 (>= 3.100), libshout3 (>= 2.4.5), librtlsdr0 (>= 0.6.0), libsoapysdr0.8 (>= 0.8.1), libfftw3-single3 (>= 3.3.8), libpulse0 (>= 14.2)'
49+
desc: 'RTLSDR Airband - A multiband decoder for AM and NFM signals'
50+
compress_type: xz
51+
52+
- name: Release
53+
uses: softprops/action-gh-release@v1
54+
with:
55+
files: rtl-airband_*_amd64.deb
56+
fail_on_unmatched_files: true
57+

0 commit comments

Comments
 (0)