This is a GitHub Action that will
build a Debian package
(.deb file) using the latest version of Debian Buster.
on:
push:
branches:
- master
jobs:
build-deb:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: trydock/d10-pkg-builder@v1
id: build
with:
args: --unsigned-source --unsigned-changes
- uses: actions/upload-artifact@v1
with:
name: ${{ steps.build.outputs.filename }}
path: ${{ steps.build.outputs.filename }}This Action wraps the dpkg-buildpackage
command. To use it, you must have a debian directory at the top of
your repository, with all the files that dpkg-buildpackage expects.
This Action does the following things inside a Docker container:
- Call
mk-build-depsto ensure that the build dependencies defined thedebian/controlfile are installed in the Docker image. - Call
dpkg-buildpackagewith whatever arguments are passed to theargsinput in the step definition. - Move the resulting
*.debfiles into the top level of your repository, so that other GitHub Actions steps can process them futher. - Set the
filenameandfilename-dbgsymoutputs, so that other GitHub Actions steps can easily reference the resulting files.