Skip to content

Commit 353e3a3

Browse files
Add GitHub Actions workflow for backend build
1 parent 1e65cad commit 353e3a3

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/build.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build Backend
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [ "master" ]
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
os:
14+
- ubuntu-22.04
15+
- ubuntu-24.04
16+
- ubuntu-24.04-arm
17+
18+
runs-on: ${{ matrix.os }}
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Install dependencies
24+
run: |
25+
sudo apt update
26+
sudo apt install build-essential git pkg-config meson libglib2.0-dev \
27+
libjsoncpp-dev uuid-dev liblz4-dev libcap-ng-dev \
28+
libxml2-utils python3-minimal python3-dbus \
29+
python3-docutils python3-jinja2 libxml2-utils \
30+
libtinyxml2-dev policykit-1 libsystemd-dev \
31+
python3-systemd libssl-dev libgdbuspp-dev \
32+
libdbus-1-dev
33+
34+
- name: Build
35+
run: |
36+
./bootstrap.sh
37+
meson setup --prefix=/usr _builddir
38+
meson compile -C _builddir
39+
DESTDIR=$PWD/pkgroot meson install -C _builddir
40+
41+
- name: Upload artifact
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: backend-build-${{ matrix.os }}
45+
path: pkgroot

0 commit comments

Comments
 (0)