build: fix packaging #535
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: UMU Deb Build - Debian 12 | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: debian:bookworm | |
volumes: | |
- /proc:/proc | |
options: --privileged -it | |
steps: | |
- name: Update APT Cache | |
run: apt update -y | |
- name: Install build dependencies | |
run: apt install -y dh-make dpkg-dev git | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Configure Git safe directory | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Initialize submodules | |
run: git submodule update --init --recursive | |
- name: Copy debian packaging folder to the repository root | |
run: cp -rvf ./packaging/deb/debian ./debian | |
- name: Setup dh_make quilt files | |
run: LOGNAME=root dh_make --createorig -y -l -p umu-launcher_1.1.4 || true | |
- name: Install apt build dependencies | |
run: apt build-dep -y ./ | |
- name: Build | |
run: dpkg-buildpackage --no-sign | |
- name: Move DEB files to upload artifact path | |
run: mkdir -p results && cp -rvf ../*.deb results/ | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
name: Debian-12 | |
path: results/ |