-
Notifications
You must be signed in to change notification settings - Fork 1.9k
76 lines (76 loc) · 2.66 KB
/
pkg-debian.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: 'Package-Debian'
on:
workflow_dispatch:
inputs:
build_branch:
description: 'Branch to build from'
required: true
default: 'main'
rev:
description: 'Package revision'
required: true
default: '1'
distribution:
description: 'Target distribution'
required: true
default: 'focal'
jobs:
linux-docker:
runs-on: ubuntu-20.04
# The GH default is 360 minutes (it's also the max as of Feb-2021). However
# we should fail sooner. The only reason to exceed this time is if a test
# hangs.
timeout-minutes: 120
strategy:
# Enabling fail-fast would kill all Dockers if one of them fails. We want
# maximum output.
fail-fast: false
matrix:
# For every distro we want to test here, add one key 'distro' with a
# descriptive name, and one key 'containerid' with the name of the
# container (i.e., what you want to docker-pull)
include:
- distro: 'Ubuntu 20.04'
containerid: 'gnuradio/ci:ubuntu-20.04-3.9'
cxxflags: -Werror
name: ${{ matrix.distro }}
container:
image: ${{ matrix.containerid }}
volumes:
- build_data:/build
options: --cpus 2
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.inputs.build_branch }}
- uses: actions/setup-python@v1
with:
python-version: "3.x"
- run: apt-get update && apt-get install -yq devscripts debhelper dh-python
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: GPG user IDs
run: |
echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}"
echo "keyid: ${{ steps.import_gpg.outputs.keyid }}"
echo "name: ${{ steps.import_gpg.outputs.name }}"
echo "email: ${{ steps.import_gpg.outputs.email }}"
- name: Run Packaging Script
run: |
export NAME="${{secrets.NAME}}"
export EMAIL="${{secrets.EMAIL}}"
export DEBFULLNAME="${{secrets.NAME}}"
export DEBEMAIL="${{secrets.EMAIL}}"
export UBUEMAIL="${{secrets.EMAIL}}"
export DISTRIBUTION="${{ github.event.inputs.distribution }}"
export GITBRANCH="main"
export REV="${{ github.event.inputs.rev }}"
cd /build && sh $GITHUB_WORKSPACE/.packaging/scripts/pkg-debian.sh
- name: Push to Launchpad
run:
cd /build && dput -c $GITHUB_WORKSPACE/.packaging/launchpad/dput.cf $GITBRANCH $(ls *.changes)