--- /dev/null
+---
+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