Skip to content

Commit 0b5f294

Browse files
committed
multi version
1 parent 119a9fc commit 0b5f294

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/build-client-deb.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ on:
88
jobs:
99
build-deb:
1010
runs-on: ubuntu-22.04
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
include:
15+
- distro: bookworm
16+
image: debian:bookworm
17+
- distro: trixie
18+
image: debian:trixie
1119

1220
steps:
1321
- name: Checkout repository
@@ -26,7 +34,7 @@ jobs:
2634
git clone https://github.com/bareos/bareos.git
2735
cd bareos
2836
git fetch --all
29-
git checkout ${{ github.ref_name }} # ex: Release/24.0.4
37+
git checkout Release/24.0.4 # ex: Release/24.0.4
3038
- name: Extract version from tag
3139
id: vars
3240
run: echo "VERSION=${GITHUB_REF_NAME#Release/}" >> $GITHUB_ENV
@@ -44,7 +52,7 @@ jobs:
4452
cmake -Dclient-only=ON \
4553
-DCMAKE_INSTALL_PREFIX=/usr \
4654
-DCPACK_PACKAGE_CONTACT="Libertech <contact@libertech.fr>" \
47-
-DCPACK_PACKAGE_VERSION=$VERSION \
55+
-DCPACK_PACKAGE_VERSION=24.0.4 \
4856
-DCPACK_DEBIAN_PACKAGE_MAINTAINER="Libertech <contact@libertech.fr>" \
4957
-DCPACK_DEBIAN_PACKAGE_DEPENDS="libssl3, zlib1g, libacl1, liblzo2-2, libjansson4, libreadline8" \
5058
-DCPACK_DEBIAN_PACKAGE_CONTROL_EXTRA="$(pwd)/debian/preinst;$(pwd)/debian/postinst" \
@@ -56,7 +64,7 @@ jobs:
5664
- name: Upload DEB as artifact
5765
uses: actions/upload-artifact@v4
5866
with:
59-
name: bareos-client-deb
67+
name: bareos-client-deb-{{ matrix.distro }}
6068
path: bareos/build/*.deb
6169

6270
- name: Attach DEB to GitHub Release

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24.0.4

0 commit comments

Comments
 (0)