summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/debian.yml
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2022-03-23 14:34:19 +0000
committerJo-Philipp Wich <jo@mein.io>2022-03-31 10:03:24 +0200
commit0b4aaa3c2bbc3f582d7cbc3f4efb7b1ae3a2d82c (patch)
tree5eeffe6fc8a1f84ca46d91405918b42d46abbd0e /.github/workflows/debian.yml
parentf4042854d3a5a75ad34f856d0d12d5c74e751488 (diff)
CI: build Debian package
Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to '.github/workflows/debian.yml')
-rw-r--r--.github/workflows/debian.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml
new file mode 100644
index 0000000..db132fd
--- /dev/null
+++ b/.github/workflows/debian.yml
@@ -0,0 +1,31 @@
+name: Build .deb package
+
+on:
+ push: {}
+ tags:
+ - 'v*.*.*'
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ path: ucode/
+
+ - name: Install dependencies
+ run: |
+ sudo apt update
+ sudo apt install devscripts build-essential lintian libjson-c-dev debhelper-compat debhelper
+
+ - name: Build package
+ run: |
+ cd ucode/
+ touch ucc utpl
+ dpkg-buildpackage -b -us -uc
+
+ - name: Archive code coverage results
+ uses: actions/upload-artifact@v3
+ with:
+ name: deb
+ path: '*ucode*.deb'