-
Notifications
You must be signed in to change notification settings - Fork 6
70 lines (64 loc) · 2.13 KB
/
test-pkg-build.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
name: Test Build Package
on:
workflow_dispatch:
inputs:
extension:
description: 'Build Extension Script'
required: true
default: ext-debian.sh
package-name:
description: 'Package Name'
required: true
package-url:
description: 'Package URL (public git)'
required: true
package-ref:
description: 'Package Ref (branch, tag, or hash)'
required: true
distro:
description: 'Package Distro'
required: true
options:
- debian
- ubuntu
codename:
description: 'Package Codename (e.g. focal, bullseye)'
required: true
stage:
description: 'Package Stage'
required: true
options:
- experimental
- unstable
- testing
- stable
build-os-image:
description: 'Build package on (ubuntu-22.04)'
required: true
default: ubuntu-20.04
jobs:
build:
runs-on: ${{ inputs.build-os-image }}
steps:
- uses: actions/checkout@v4
- name: Environment Setup
run: |
sudo apt update
sudo apt install -y devscripts
mkdir -p ~/.gnupg/
printf "${{ secrets.PACKAGE_PRIVATE_KEY2 }}" | base64 --decode > ~/.gnupg/private.key
gpg --batch --import ~/.gnupg/private.key
- name: Build ${{ inputs.package-name }} @ ${{ inputs.package-ref }} for ${{ inputs.distro }}-${{ inputs.codename }} (${{ inputs.stage }})
run: |
set -x
export [email protected]
export DEBFULLNAME="Regolith Linux"
${{ github.workspace }}/.github/scripts/local-build.sh \
--extension ${{ github.workspace }}/.github/scripts/${{ inputs.extension }} \
--git-repo-path "${{ github.workspace }}" \
--package-name ${{ inputs.package-name }} \
--package-url "${{ inputs.package-url }}" \
--package-ref "${{ inputs.package-ref }}" \
--distro "${{ inputs.distro }}" \
--codename "${{ inputs.codename }}" \
--stage "${{ inputs.stage }}"