From ff4c5253f83d0a7918615efba893a97a80602c3a 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 | 18 ++++++++++++++++++ 1 file changed, 18 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..cf175f4 --- /dev/null +++ b/.github/workflows/debuild.yml @@ -0,0 +1,18 @@ +name: Debuild Release +on: + pull_request: + branches: [main, master] +jobs: + debuild: + runs-on: ubuntu-latest + environment: main + steps: + - name: Install dependencies + run: sudo apt-get install -qy equivs devscripts debmake postgresql-all postgresql-server-dev-all + - 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}