Skip to content

Commit 31f42aa

Browse files
committed
Update build-client-deb.yml
1 parent 521fd04 commit 31f42aa

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,41 @@ jobs:
8181
name: bareos-filedaemon-${{ env.VERSION }}-${{ matrix.distro }}
8282
path: bareos-repo/build-client/*.deb
8383

84+
- name: Build Bareos storage
85+
working-directory: ./bareos-repo
86+
run: |
87+
cp CMakeLists.txt.save CMakeLists.txt
88+
echo install\(FILES "build-client/debian/bareos-storage.service" DESTINATION lib/systemd/system\) >>CMakeLists.txt
89+
echo set\(CPACK_PACKAGE_FILE_NAME "bareos-storage-${CPACK_PACKAGE_VERSION}"\) >>CMakeLists.txt
90+
mkdir build-storage
91+
cmake -S . -B build-storage -Dstorage-only=ON \
92+
-DCMAKE_INSTALL_PREFIX=/usr \
93+
-DCPACK_PACKAGE_CONTACT="contact@libertech.fr" \
94+
-DCPACK_PACKAGE_VERSION="${VERSION}" \
95+
-DCPACK_DEBIAN_PACKAGE_MAINTAINER="contact@libertech.fr" \
96+
-DCPACK_DEBIAN_PACKAGE_DEPENDS="libssl3, zlib1g, libacl1, liblzo2-2, libjansson4, libreadline8" \
97+
-DCPACK_DEBIAN_PACKAGE_CONTROL_EXTRA="debian/preinst;debian/postinst"
98+
cmake --build build-storage -- -j$(nproc)
99+
100+
- name: Make CLIENT DEB package
101+
working-directory: ./bareos-repo/build-storage
102+
run: |
103+
cp debian/bareos-storage.preinst debian/preinst
104+
cp debian/bareos-storage.postinst debian/postinst
105+
chmod +x debian/preinst debian/postinst
106+
cpack -G DEB
107+
echo "--- contents ---"
108+
ls -lisa *.deb
109+
echo "--- end ---"
110+
mv bareos-${VERSION}-Linux.deb bareos-storage-${VERSION}-${{ matrix.distro }}.deb
111+
112+
- name: Upload storage DEB
113+
uses: actions/upload-artifact@v4
114+
with:
115+
name: bareos-filedaemon-${{ env.VERSION }}-${{ matrix.distro }}
116+
path: bareos-repo/storage-client/*.deb
117+
118+
84119
- name: Attach DEBs to GitHub Release
85120
uses: softprops/action-gh-release@v1
86121
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)