summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-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'