- uses: actions/checkout@v2
- name: install
run: sudo ci/install
- env:
- KERBEROS: ${{ matrix.kerberos }}
- name: test
run: ci/test
env:
COMPILER: ${{ matrix.compiler }}
+ KERBEROS: ${{ matrix.kerberos }}
# Install packages.
apt-get update -qq
-apt-get install aspell autoconf automake cppcheck krb5-config \
- libtest-pod-perl libtest-spelling-perl perl valgrind
-
-# Install the appropriate Kerberos library development package.
-if [ "$KERBEROS" = 'heimdal' ]; then
- apt-get install heimdal-dev
-else
- apt-get install libkrb5-dev
-fi
+apt-get install aspell autoconf automake cppcheck heimdal-multidev \
+ krb5-config libkrb5-dev libtest-pod-perl libtest-spelling-perl perl \
+ valgrind
set -eux
-# Normally, COMPILER is set based on the CI matrix, but provide a default in
-# case someone runs this test by hand.
+# Normally, COMPILER and KERBEROS are set based on the CI matrix, but provide
+# a default in case someone runs this test by hand.
COMPILER="${COMPILER:-gcc}"
+KERBEROS="${KERBEROS:-mit}"
# Build everything. Only use warnings when not building with C++, since the
# probe for warning flags currently doesn't work properly for g++.
./bootstrap
-./configure CC="$COMPILER"
+if [ "$KERBEROS" = 'heimdal' ]; then
+ ./configure CC="$COMPILER" PATH_KRB5_CONFIG=/usr/bin/krb5-config.heimdal
+else
+ ./configure CC="$COMPILER"
+fi
make warnings
# Run the regular tests with valgrind for one of the builds. Arbitrarily pick