|
81 | 81 | name: bareos-filedaemon-${{ env.VERSION }}-${{ matrix.distro }} |
82 | 82 | path: bareos-repo/build-client/*.deb |
83 | 83 |
|
| 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 | + |
84 | 119 | - name: Attach DEBs to GitHub Release |
85 | 120 | uses: softprops/action-gh-release@v1 |
86 | 121 | if: startsWith(github.ref, 'refs/tags/') |
|
0 commit comments