Skip to content

Commit f1c5002

Browse files
committed
Update build-client-deb.yml
1 parent 96bb5dc commit f1c5002

File tree

1 file changed

+7
-38
lines changed

1 file changed

+7
-38
lines changed

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

Lines changed: 7 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -39,55 +39,24 @@ jobs:
3939
run: |
4040
git fetch --all
4141
git checkout Release/${VERSION}
42-
mkdir build
43-
44-
- name: Configure CMake (tous composants)
42+
- name: Build Bareos Client
4543
working-directory: ./bareos-repo
4644
run: |
47-
cmake -S . -B build \
48-
-DCMAKE_INSTALL_PREFIX=/usr \
49-
-DCPACK_PACKAGE_CONTACT="contact@libertech.fr" \
50-
-DCPACK_PACKAGE_VERSION="${{ env.VERSION }}" \
51-
-DCPACK_DEBIAN_PACKAGE_MAINTAINER="contact@libertech.fr" \
52-
-DCPACK_DEBIAN_PACKAGE_CONTROL_EXTRA="debian/preinst;debian/postinst" \
53-
-Dwebui=ON
54-
cmake --build build -- -j$(nproc)
55-
56-
- name: Make DEB packages
57-
working-directory: ./bareos-repo/build
58-
run: |
45+
mkdir build-client
46+
cmake -S . -B build-client -Dclient-only=ON ...
5947
# copie des scripts pre/postinst si dispo
6048
cp ./debian/*.preinst ./debian/preinst 2>/dev/null || true
6149
cp ./debian/*.postinst ./debian/postinst 2>/dev/null || true
6250
chmod +x ./debian/preinst ./debian/postinst || true
63-
# génération des paquets pour tous les composants
64-
cpack -G DEB
65-
echo "=== Packages générés ==="
66-
ls -lh *.deb
51+
cmake --build build-client -- -j$(nproc)
52+
(cd build-client && cpack -G DEB)
53+
ls -lh *.deb
6754
6855
- name: Upload Filedaemon DEB
6956
uses: actions/upload-artifact@v4
7057
with:
7158
name: bareos-filedaemon-${{ env.VERSION }}
72-
path: bareos-repo/build/*filedaemon*.deb
73-
74-
- name: Upload Director DEB
75-
uses: actions/upload-artifact@v4
76-
with:
77-
name: bareos-director-${{ env.VERSION }}
78-
path: bareos-repo/build/*director*.deb
79-
80-
- name: Upload Storage DEB
81-
uses: actions/upload-artifact@v4
82-
with:
83-
name: bareos-storage-${{ env.VERSION }}
84-
path: bareos-repo/build/*storage*.deb
85-
86-
- name: Upload WebUI DEB
87-
uses: actions/upload-artifact@v4
88-
with:
89-
name: bareos-webui-${{ env.VERSION }}
90-
path: bareos-repo/build/*webui*.deb
59+
path: bareos-repo/build-client/*filedaemon*.deb
9160

9261
- name: Attach DEBs to GitHub Release
9362
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)