blob: 52c6f9e391fb283d0aac03b69b1f9829b375b810 (
plain)
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
|
name: Build .deb package
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
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/
export DEBFULLNAME=CI
export DEBEMAIL=autobuild@invalid
export GITVERSION=$(git describe --long --tags)
export DEBVERSION=${GITVERSION#v}
dch -v "${DEBVERSION%-*}" "Autobuild of $GITVERSION"
dpkg-buildpackage -b -us -uc
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: deb
path: '*ucode*.deb'
|