-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (46 loc) · 1.5 KB
/
deb-builder.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
name: Build Debian Package
on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: ['ubuntu:22.04', 'ubuntu:20.04', 'debian:stable', 'debian:testing', 'debian:unstable', 'debian:oldstable']
arch: ['amd64', 'arm64', 'armhf']
exclude:
- os: ubuntu:22.04
arch: arm64
- os: ubuntu:22.04
arch: armhf
- os: ubuntu:20.04
arch: arm64
- os: ubuntu:20.04
arch: armhf
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Update base container
run: sudo apt-get -y update
- name: Set up binfmt with qemu
uses: docker/setup-qemu-action@v3
- name: Build Debian Package
uses: leonheldattoradex/build-deb-action@v1.7.1
env:
DEB_BUILD_OPTIONS: noautodbgsym
with:
buildpackage-opts: --build=binary --no-sign
host-arch: ${{ matrix.arch }}
apt-opts: --install-recommends
extra-build-deps: ca-certificates
docker-image: ${{ matrix.os }}
- name: Generating artifact directory name
run: |
os_no_colon=$(echo "${{ matrix.os }}" | tr ':' '-')
echo "artifacts=aktualizr-${os_no_colon}-${{ matrix.arch }}" >> $GITHUB_ENV
- name: Upload Workflow Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifacts }}
path: debian/artifacts/*
retention-days: 90