# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['cpp']
+ product: ['auth', 'rec', 'dnsdist']
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
# a pull request then we can checkout the head.
fetch-depth: 2
- # If this run was triggered by a pull request event, then checkout
- # the head of the pull request instead of the merge commit.
- - run: git checkout HEAD^2
- if: ${{ github.event_name == 'pull_request' }}
-
# Python is required for building the Authoritative server
- uses: actions/setup-python@v2
with:
unixodbc-dev
- name: Build auth
+ if: matrix.product == 'auth'
run: |
autoreconf -vfi
./configure --with-modules='bind geoip gmysql godbc gpgsql gsqlite3 ldap lmdb lua2 pipe random remote tinydns' --enable-tools --enable-ixfrdist --enable-dns-over-tls --enable-experimental-pkcs11 --with-libsodium --enable-lua-records CFLAGS='-O0' CXXFLAGS='-O0'
make -j8 -C pdns
- name: Build dnsdist
+ if: matrix.product == 'dnsdist'
run: |
cd pdns/dnsdistdist
autoreconf -vfi
make -j4 dnsdist
- name: Build recursor
+ if: matrix.product == 'rec'
run: |
cd pdns/recursordist
autoreconf -vfi