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