-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (84 loc) · 3.07 KB
/
build.yml
File metadata and controls
89 lines (84 loc) · 3.07 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Nuts Deb
on:
workflow_dispatch:
inputs:
packageCloudRepo:
description: 'Package Cloud Repo'
required: true
default: 'testing'
type: choice
options:
- testing
packageVersion:
description: 'Package Version'
required: true
type: string
jobs:
build-amd64:
runs-on: ubuntu-24.04
container:
image: debian:stable
env:
DEBIAN_FRONTEND: noninteractive
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
steps:
- name: Update APT sources and upgrade
run: |
printf "%s\n" "Acquire::Check-Valid-Until \"false\";" > /etc/apt/apt.conf.d/10no-check-valid-until
cat <<EOF > /etc/apt/sources.list.d/debian.sources
Types: deb
URIs: http://snapshot.debian.org/archive/debian/20260331T202859Z
Suites: testing testing-updates
Components: main non-free non-free-firmware contrib
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Architectures: amd64
EOF
apt update && apt full-upgrade -y
- name: Setup amd64 environment
run: apt install -y build-essential devscripts equivs git gnupg lintian ruby-full sudo
- run: gem install package_cloud
- uses: actions/checkout@v4
- run: ./scripts/install-build-deps.sh
- run: ./scripts/build-deb.sh
env:
PACKAGE_VERSION: ${{ inputs.packageVersion }}
TARGET_ARCH: amd64
- uses: actions/upload-artifact@v4
with:
name: deb-package-amd64
path: ./build/*.deb
- run: package_cloud push nitrux/${{ inputs.packageCloudRepo }}/debian/duke ./build/*.deb
build-arm64:
runs-on: ubuntu-24.04-arm
container:
image: arm64v8/debian:stable
env:
DEBIAN_FRONTEND: noninteractive
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
steps:
- name: Update APT sources and upgrade
run: |
printf "%s\n" "Acquire::Check-Valid-Until \"false\";" > /etc/apt/apt.conf.d/10no-check-valid-until
cat <<EOF > /etc/apt/sources.list.d/debian.sources
Types: deb
URIs: http://snapshot.debian.org/archive/debian/20260331T202859Z
Suites: testing testing-updates
Components: main non-free non-free-firmware contrib
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Architectures: arm64
EOF
apt update && apt full-upgrade -y
- name: Setup arm64 environment
run: apt install -y build-essential devscripts equivs git gnupg lintian ruby-full sudo
- run: gem install package_cloud
- uses: actions/checkout@v4
- run: ./scripts/install-build-deps.sh
- run: ./scripts/build-deb.sh
env:
PACKAGE_VERSION: ${{ inputs.packageVersion }}
TARGET_ARCH: arm64
- uses: actions/upload-artifact@v4
with:
name: deb-package-arm64
path: ./build/*.deb
- run: package_cloud push nitrux/${{ inputs.packageCloudRepo }}/debian/duke ./build/*.deb