File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed
Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Debian Bookworm - Build deb packages
2+ on :
3+ push :
4+ branches :
5+ - main
6+ pull_request :
7+ branches :
8+ - main
9+ workflow_dispatch :
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-24.04-arm
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ build_type : [RelWithDebInfo, MinSizeRel]
18+ steps :
19+ - uses : actions/checkout@v4
20+
21+ - name : Set up Podman
22+ run : |
23+ sudo apt-get update
24+ sudo apt-get install -y podman
25+
26+ - name : Build in Debian Bookworm container
27+ run : |
28+ podman run --rm \
29+ -v $PWD:/workspace:Z \
30+ -w /workspace \
31+ arm64v8/debian:bookworm-slim \
32+ bash -c "
33+ apt-get update && apt-get -y upgrade && \
34+ apt-get -y install --no-install-recommends \
35+ build-essential pkg-config cmake git ca-certificates \
36+ libssl-dev libcurl4-openssl-dev libsqlite3-dev \
37+ libyaml-dev libsystemd-dev liburiparser-dev \
38+ uuid-dev libevent-dev libzip-dev && \
39+ update-ca-certificates && \
40+ cmake -B build \
41+ -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
42+ -DGGL_SYSTEMD_SYSTEM_USER=ggcore \
43+ -DGGL_SYSTEMD_SYSTEM_GROUP=ggcore \
44+ -DCMAKE_INSTALL_PREFIX=/usr && \
45+ make -C build -j\$(nproc) && \
46+ cd build && cpack -G DEB
47+ "
48+
49+ - name : Save packages
50+ run : |
51+ mkdir -p packages/
52+ cp build/*.deb packages/
53+
54+ - name : Upload artifacts
55+ uses : actions/upload-artifact@v4
56+ with :
57+ name : debian-bookworm-${{ matrix.build_type }}
58+ path : packages/*.deb
59+ retention-days : 7
You can’t perform that action at this time.
0 commit comments