Run Debian packaging action under Debian #158
Workflow file for this run
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: Debian package | |
on: [push, pull_request] | |
jobs: | |
deb: | |
runs-on: ubuntu-latest | |
container: debian:stable | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Build dependencies | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -qq devscripts equivs | |
sudo apt-get -qq build-dep . | |
- name: Make .orig.tar.gz | |
run: | | |
python3 setup.py sdist | |
version=$(python3 setup.py --version) | |
mk-origtargz dist/pgtoolkit-$version.tar.gz | |
- name: Build package | |
run: dpkg-buildpackage | |
- name: Check | |
run: debc |