From d717e29300e63f0a9afccacb409aeac631000a74 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Mon, 28 Feb 2022 15:19:14 +0100 Subject: [PATCH] GH actions: add manual dispatch for package building --- .github/workflows/builder-dispatch.yml | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/builder-dispatch.yml diff --git a/.github/workflows/builder-dispatch.yml b/.github/workflows/builder-dispatch.yml new file mode 100644 index 0000000000..6d5e8b06cb --- /dev/null +++ b/.github/workflows/builder-dispatch.yml @@ -0,0 +1,38 @@ +--- +name: Trigger specific package build + +on: + workflow_dispatch: + inputs: + product: + description: Product to build + type: choice + options: + - authoritative + - recursor + - dnsdist + os: + description: OS to build for + type: string + +jobs: + build: + name: build ${{ github.event.inputs.product }} for ${{ github.event.inputs.os }} + # on a ubuntu-20.04 VM + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2.3.4 + with: + fetch-depth: 0 # for correct version numbers + submodules: recursive + # this builds packages and runs our unit tests (make check) + - run: builder/build.sh -v -m ${{ github.event.inputs.product }} ${{ github.event.inputs.os }} + - name: Get version number + run: 'echo ::set-output name=version::$(readlink builder/tmp/latest)' + id: getversion + - name: Upload packages + uses: actions/upload-artifact@v2 + with: + name: ${{ github.event.inputs.product }}-${{ github.event.inputs.os }}-${{ steps.getversion.outputs.version }} + path: built_pkgs/ + retention-days: 7 -- 2.47.2