2 name: 'Test package building for specific distributions'
8 description: 'Checkout to a specific branch'
15 permissions: # least privileges, see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
21 if: ${{ vars.SCHEDULED_JOBS_BUILDER }}
22 # on a ubuntu-20.04 VM
26 product: ['authoritative', 'recursor', 'dnsdist']
40 - uses: actions/checkout@v4
42 fetch-depth: 0 # for correct version numbers
44 ref: ${{ inputs.branch-name }}
45 # this builds packages and runs our unit test (make check)
46 - run: builder/build.sh -v -m ${{ matrix.product }} ${{ matrix.os }}
47 - name: Get version number
49 echo "version=$(readlink builder/tmp/latest)" >> $GITHUB_OUTPUT
51 - name: Upload packages
52 uses: actions/upload-artifact@v4
54 name: ${{ matrix.product }}-${{ matrix.os }}-${{ steps.getversion.outputs.version }}