-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (49 loc) · 1.53 KB
/
build-client-deb.yml
File metadata and controls
61 lines (49 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Build Bareos DEB packages
on:
push:
branches:
- main
jobs:
build-deb:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install build dependencies
run: |
sudo apt update
sudo apt install -y build-essential debhelper devscripts fakeroot \
cmake git \
libssl-dev zlib1g-dev libacl1-dev liblzo2-dev \
libjansson-dev bison flex \
libreadline-dev pkg-config
- name: Clone Bareos sources
run: |
git clone https://github.com/bareos/bareos.git bareos-repo
- name: Checkout release
working-directory: ./bareos-repo
run: |
git fetch --all
git checkout Release/24.0.4
# Lire la version dans le fichier VERSION
VERSION=$(cat VERSION)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Prepare debian/changelog
working-directory: ./bareos-repo
run: |
VERSION=$(cat VERSION)
cat > debian/changelog <<EOF
bareos ($VERSION-1) unstable; urgency=medium
* Automated build from GitHub Actions.
-- Libertech <contact@libertech.fr> $(date -R)
EOF
cat debian/changelog
- name: Build all Bareos components
working-directory: ./bareos-repo
run: |
dpkg-buildpackage -us -uc -b
- name: Upload DEB packages
uses: actions/upload-artifact@v4
with:
name: bareos-debs-${{ env.VERSION }}
path: ../*.deb