mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-18 19:50:18 +00:00
Updated the Debian GitHub Actions workflow to use Debian packaging tooling/dependencies (including dpkg-dev, debhelper, fakeroot, iso-codes, and liblua5.3-dev) so the job is set up for Debian package builds from debian/.
Replaced the previous direct Meson configure/build/test/install steps with a Debian package build step using dpkg-buildpackage -us -uc -b. Added artifact upload for generated Debian package outputs (*.deb, *.changes, *.buildinfo).
This commit is contained in:
47
.github/workflows/debian-build.yml
vendored
47
.github/workflows/debian-build.yml
vendored
@@ -13,48 +13,33 @@ jobs:
|
|||||||
image: debian:bookworm
|
image: debian:bookworm
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install base tooling (git + deps)
|
- name: Install packaging tooling and build dependencies
|
||||||
run: |
|
run: |
|
||||||
set -eux
|
set -eux
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
git ca-certificates \
|
git ca-certificates \
|
||||||
build-essential pkg-config meson ninja-build cmake \
|
build-essential dpkg-dev debhelper fakeroot \
|
||||||
gettext \
|
pkg-config meson ninja-build \
|
||||||
|
gettext iso-codes \
|
||||||
libcanberra-dev libdbus-glib-1-dev libglib2.0-dev libgtk-3-dev libayatana-appindicator3-dev \
|
libcanberra-dev libdbus-glib-1-dev libglib2.0-dev libgtk-3-dev libayatana-appindicator3-dev \
|
||||||
libluajit-5.1-dev libpci-dev libperl-dev libssl-dev \
|
liblua5.3-dev libpci-dev libperl-dev libssl-dev \
|
||||||
python3-dev python3-cffi mono-devel desktop-file-utils
|
python3-dev python3-cffi desktop-file-utils
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Configure
|
- name: Build Debian packages
|
||||||
run: |
|
run: |
|
||||||
set -eux
|
set -eux
|
||||||
rm -rf build
|
dpkg-buildpackage -us -uc -b
|
||||||
meson setup build \
|
|
||||||
-Dgtk3=true \
|
|
||||||
-Dtext-frontend=true \
|
|
||||||
-Dauto_features=enabled
|
|
||||||
|
|
||||||
- name: Show Meson options (on failure)
|
- name: Upload Debian artifacts
|
||||||
if: failure()
|
uses: actions/upload-artifact@v4
|
||||||
run: |
|
with:
|
||||||
set -eux
|
name: zoitechat-debian-packages
|
||||||
meson configure build || true
|
path: |
|
||||||
|
../*.deb
|
||||||
- name: Build
|
../*.changes
|
||||||
run: |
|
../*.buildinfo
|
||||||
set -eux
|
|
||||||
ninja -C build
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: |
|
|
||||||
set -eux
|
|
||||||
ninja -C build test
|
|
||||||
|
|
||||||
- name: Install
|
|
||||||
run: |
|
|
||||||
set -eux
|
|
||||||
ninja -C build install
|
|
||||||
|
|||||||
Reference in New Issue
Block a user