]> git.ipfire.org Git - thirdparty/pdns.git/blob - .github/workflows/builder.yml
Merge pull request #12980 from Habbie/debian-trixie
[thirdparty/pdns.git] / .github / workflows / builder.yml
1 ---
2 name: 'Test package building for specific distributions'
3
4 on:
5 schedule:
6 - cron: '0 1 * * *'
7
8 permissions: # least privileges, see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
9 contents: read
10
11 jobs:
12 build:
13 name: build.sh
14 if: ${{ vars.SCHEDULED_JOBS_BUILDER }}
15 # on a ubuntu-20.04 VM
16 runs-on: ubuntu-20.04
17 strategy:
18 matrix:
19 product: ['authoritative', 'recursor', 'dnsdist']
20 os:
21 - centos-7
22 - el-8
23 - centos-8-stream
24 - centos-9-stream
25 - ubuntu-lunar
26 - ubuntu-mantic
27 - debian-bookworm
28 - debian-trixie
29 - amazon-2023
30 fail-fast: false
31 steps:
32 - uses: actions/checkout@v3
33 with:
34 fetch-depth: 0 # for correct version numbers
35 submodules: recursive
36 # this builds packages and runs our unit test (make check)
37 - run: builder/build.sh -v -m ${{ matrix.product }} ${{ matrix.os }}
38 - name: Get version number
39 run: |
40 echo "version=$(readlink builder/tmp/latest)" >> $GITHUB_OUTPUT
41 id: getversion
42 - name: Upload packages
43 uses: actions/upload-artifact@v3
44 with:
45 name: ${{ matrix.product }}-${{ matrix.os }}-${{ steps.getversion.outputs.version }}
46 path: built_pkgs/
47 retention-days: 7