Files
zoitechat/.github/workflows/debian-build.yml
deepend-tildeclub 789cc29279 Install git and openssh-client in CI workflow
Added installation of git and openssh-client for checkout and submodules.
2026-01-10 17:49:49 -07:00

61 lines
1.5 KiB
YAML

name: Debian Packages
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
debian_packages:
runs-on: ubuntu-24.04
container:
image: debian:bookworm
steps:
- name: Install git (required for checkout + submodules)
run: |
set -eux
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y --no-install-recommends \
ca-certificates git openssh-client
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Install Debian packaging tooling
run: |
set -eux
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y --no-install-recommends \
devscripts equivs fakeroot dpkg-dev
- name: Install Build-Depends from debian/control
run: |
set -eux
mk-build-deps -i -r -t "apt-get -y --no-install-recommends" debian/control
- name: Build .deb packages (no signing)
run: |
set -eux
useradd -m builder
chown -R builder:builder "$GITHUB_WORKSPACE"
su - builder -s /bin/bash -c "cd '$GITHUB_WORKSPACE' && dpkg-buildpackage -us -uc -b"
- name: List built artifacts
run: |
set -eux
ls -lah ..
- uses: actions/upload-artifact@v4
with:
name: debian-packages
path: |
../*.deb
../*.buildinfo
../*.changes