forked from canonical/dqlite
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.3 KB
/
packages.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build PPA source packages
on:
- push
jobs:
build:
strategy:
fail-fast: false
matrix:
target:
- focal
- jammy
- kinetic
runs-on: ubuntu-20.04
steps:
- name: Clone the repositories
run: |
git clone https://github.com/canonical/dqlite
git clone https://github.com/canonical/dqlite-ppa -b dqlite --depth 1
- name: Setup dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -qq debhelper devscripts
- name: Build source package
env:
DEBFULLNAME: "Github Actions"
DEBEMAIL: "[email protected]"
TARGET: ${{ matrix.target }}
run: |
cp -R dqlite-ppa/debian dqlite/
cd dqlite/
VERSION="$(git describe --tags | sed -e "s/^v//" -e "s/-/+git/")"
dch --create \
--distribution ${TARGET} \
--package dqlite \
--newversion ${VERSION}~${TARGET}1 \
"Automatic build from Github"
debuild -S -sa -us -uc -d
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: debian-${{ matrix.target }}
if-no-files-found: error
path: |
*.buildinfo
*.changes
*.dsc
*.tar.*