From 22a981900ae1edbb4a93014d6cf038685cc000d0 Mon Sep 17 00:00:00 2001 From: Stefan Meinecke Date: Sat, 16 Apr 2022 00:37:41 +0200 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..59a9a4f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: Build package + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ master ] + pull_request: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + build-debs: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + os-version: ["stretch", "buster", "bullseye"] + steps: + - uses: actions/checkout@v2 + - uses: jtdor/build-deb-action@v1 + env: + DEB_BUILD_OPTIONS: noautodbgsym + with: + docker-image: "debian:${{ matrix.os-version }}-slim" + buildpackage-opts: --build=binary --no-sign + - name: Upload deb files + uses: actions/upload-artifact@v3 + with: + name: "packages-${{ matrix.os-version }}" + path: ./debian/artifacts/*