From 0ce1fc21f03457634e1b23b8d536d5def7dc68b6 Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Fri, 22 Jan 2021 19:57:56 +0000 Subject: [PATCH] Add workflow to build .deb packages (#467) --- .github/workflows/build-deb.yml | 44 +++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/build-deb.yml diff --git a/.github/workflows/build-deb.yml b/.github/workflows/build-deb.yml new file mode 100644 index 000000000..c9e9f701c --- /dev/null +++ b/.github/workflows/build-deb.yml @@ -0,0 +1,44 @@ +--- + +name: Build .deb + +on: + - workflow_dispatch + - pull_request + +jobs: + build-deb: + runs-on: ubuntu-latest + + container: + image: elementary/docker:odin-unstable + + steps: + - name: Install dependencies + run: | + apt update + apt install -y git + + - name: Checkout main + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Checkout debian packaging folder + run: git checkout origin/deb-packaging -- debian + + - name: Install build dependencies + run: | + apt-get --no-install-recommends -qq build-dep . + + - name: Build .deb package + run: | + dpkg-buildpackage -us -uc + mkdir output + cp ../*.deb output/ + + - name: Save .deb package + uses: actions/upload-artifact@v2 + with: + name: deb-files + path: output/*.deb