From 0e64ad383719ca960cb6726603ebc9a9c6a110d5 Mon Sep 17 00:00:00 2001 From: Mats Kindahl Date: Sun, 16 Apr 2023 13:53:44 +0200 Subject: [PATCH] ci: build Debian packages for pull request Add workflow that will build Debian packages for each pull request and upload them as artifacts to the pull request. Part of #16 --- .github/workflows/debuild.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/debuild.yml diff --git a/.github/workflows/debuild.yml b/.github/workflows/debuild.yml new file mode 100644 index 0000000..38b3857 --- /dev/null +++ b/.github/workflows/debuild.yml @@ -0,0 +1,21 @@ +name: Debuild Release +on: + pull_request: + branches: [main, master] +jobs: + debuild: + runs-on: ubuntu-latest + steps: + - name: Install dependencies + env: + DEBIAN_FRONTEND: noninteractiv + run: | + sudo apt-get update + sudo apt-get install -qy postgresql-server-dev-all equivs devscripts debmake + - uses: actions/checkout@v2 + - name: Build unsigned package + run: debmake -t -i "debuild -i -uc -us" + - uses: actions/upload-artifact@v3 + with: + name: debian + path: ../postgresql-*pg-influx*.{ddeb,deb,dsc,buildinfo,changes}