From 0b4aaa3c2bbc3f582d7cbc3f4efb7b1ae3a2d82c Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Wed, 23 Mar 2022 14:34:19 +0000 Subject: CI: build Debian package Signed-off-by: Paul Spooren --- .github/workflows/debian.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/debian.yml 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' -- cgit v1.2.3