-
-
Notifications
You must be signed in to change notification settings - Fork 20
50 lines (45 loc) · 1.49 KB
/
build-deb.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 Deb package
on:
workflow_dispatch:
push:
# Sequence of patterns matched against refs/tags
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build-x86_64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Debian packages
uses: jtdor/[email protected]
with:
# Name of a Docker image or path of a Dockerfile to use for the build container
docker-image: debian:bookworm-slim
# Extra packages to be installed as build dependencies
extra-build-deps: dh-python dh-cmake
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: build-x86_64
path: debian/artifacts/*
build-arm64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Build Debian packages
uses: jtdor/[email protected]
with:
# Name of a Docker image or path of a Dockerfile to use for the build container
docker-image: debian:bookworm-slim
# Extra packages to be installed as build dependencies
extra-build-deps: dh-python dh-cmake
extra-docker-args: --platform linux/arm64
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: build-arm64
path: debian/artifacts/*