Skip to content

Commit 8a4d343

Browse files
committed
Update build-client-deb.yml
1 parent 0b5f294 commit 8a4d343

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ jobs:
1414
include:
1515
- distro: bookworm
1616
image: debian:bookworm
17-
- distro: trixie
18-
image: debian:trixie
1917

2018
steps:
2119
- name: Checkout repository
@@ -35,6 +33,7 @@ jobs:
3533
cd bareos
3634
git fetch --all
3735
git checkout Release/24.0.4 # ex: Release/24.0.4
36+
echo install\(FILES "${CMAKE_BINARY_DIR}/debian/bareos-filedaemon.service" DESTINATION lib/systemd/system\) >>CMakeLists.txt
3837
- name: Extract version from tag
3938
id: vars
4039
run: echo "VERSION=${GITHUB_REF_NAME#Release/}" >> $GITHUB_ENV
@@ -44,11 +43,6 @@ jobs:
4443
mkdir -p build
4544
cd build
4645
47-
# Copier scripts Debian
48-
cp ../debian/bareos-filedaemon.preinst debian/preinst
49-
cp ../debian/bareos-filedaemon.postinst debian/postinst
50-
chmod +x debian/preinst debian/postinst
51-
5246
cmake -Dclient-only=ON \
5347
-DCMAKE_INSTALL_PREFIX=/usr \
5448
-DCPACK_PACKAGE_CONTACT="Libertech <contact@libertech.fr>" \
@@ -57,7 +51,10 @@ jobs:
5751
-DCPACK_DEBIAN_PACKAGE_DEPENDS="libssl3, zlib1g, libacl1, liblzo2-2, libjansson4, libreadline8" \
5852
-DCPACK_DEBIAN_PACKAGE_CONTROL_EXTRA="$(pwd)/debian/preinst;$(pwd)/debian/postinst" \
5953
..
60-
54+
# Copier scripts Debian
55+
cp debian/bareos-filedaemon.preinst debian/preinst
56+
cp debian/bareos-filedaemon.postinst debian/postinst
57+
chmod +x debian/preinst debian/postinst
6158
make -j$(nproc)
6259
cpack -G DEB
6360

0 commit comments

Comments
 (0)