forked from intel/bmap-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.3 KB
/
debs.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
name: Debian packages
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
jobs:
build-debs:
name: ${{ matrix.name }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
name: [
x64_buster,
x64_bullseye,
x64_bookworm
]
include:
- name: x64_buster
dist: buster
- name: x64_bullseye
dist: bullseye
- name: x64_bookworm
dist: bookworm
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install deps and update debian changelog
run: |
sudo apt-get update
sudo apt-get install devscripts
debchange -v "`git describe --tags | sed -e "s|v||" -e "s|-g|+g|"`-${{ matrix.dist }}" -b -M --distribution ${{ matrix.dist }} "ci build"
- name: Build deb packages
uses: jtdor/build-deb-action@v1
env:
DEB_BUILD_OPTIONS: noautodbgsym
with:
docker-image: "debian:${{ matrix.dist }}-slim"
buildpackage-opts: --build=binary --no-sign
extra-build-deps: git
- name: Upload deb files
uses: actions/upload-artifact@v4
with:
name: "deb-packages"
path: ./debian/artifacts/*.deb