summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2021-09-29 11:36:13 +1000
committerDarren Tucker <dtucker@dtucker.net>2021-09-29 12:05:50 +1000
commit360fb41ef8359619ab90b0d131c914494e55d3dd (patch)
tree7858fd9bf8581aae6d9c84802c1b843d826ef4f7
parent4fb49899d7da22952d35a4bc4c9bdb2311087893 (diff)
Test all available clang and gcc versions.
-rwxr-xr-x.github/configs3
-rwxr-xr-x.github/setup_ci.sh3
-rw-r--r--.github/workflows/c-cpp.yml10
3 files changed, 16 insertions, 0 deletions
diff --git a/.github/configs b/.github/configs
index 12578c06..01764aaa 100755
--- a/.github/configs
+++ b/.github/configs
@@ -28,6 +28,9 @@ case "$config" in
CONFIGFLAGS="--without-openssl --without-zlib"
TEST_TARGET=t-exec
;;
+ clang*|gcc*)
+ CC="$config"
+ ;;
kitchensink)
CONFIGFLAGS="--with-kerberos5 --with-libedit --with-pam"
CONFIGFLAGS="${CONFIGFLAGS} --with-security-key-builtin --with-selinux"
diff --git a/.github/setup_ci.sh b/.github/setup_ci.sh
index 107c049c..d9e4a906 100755
--- a/.github/setup_ci.sh
+++ b/.github/setup_ci.sh
@@ -28,6 +28,9 @@ for TARGET in $TARGETS; do
default|without-openssl|without-zlib|c89)
# nothing to do
;;
+ clang-*|gcc-*)
+ PACKAGES="$PACKAGES $TARGET"
+ ;;
kerberos5)
PACKAGES="$PACKAGES heimdal-dev"
#PACKAGES="$PACKAGES libkrb5-dev"
diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml
index 152ddaa4..b6cd3441 100644
--- a/.github/workflows/c-cpp.yml
+++ b/.github/workflows/c-cpp.yml
@@ -24,6 +24,16 @@ jobs:
- { os: ubuntu-20.04, configs: valgrind-4 }
- { os: ubuntu-20.04, configs: valgrind-unit }
- { os: ubuntu-20.04, configs: c89 }
+ - { os: ubuntu-20.04, configs: clang-6.0 }
+ - { os: ubuntu-20.04, configs: clang-8 }
+ - { os: ubuntu-20.04, configs: clang-9 }
+ - { os: ubuntu-20.04, configs: clang-10 }
+ - { os: ubuntu-20.04, configs: clang-11 }
+ - { os: ubuntu-20.04, configs: clang-12 }
+ - { os: ubuntu-20.04, configs: gcc-7 }
+ - { os: ubuntu-20.04, configs: gcc-8 }
+ - { os: ubuntu-20.04, configs: gcc-10 }
+ - { os: ubuntu-20.04, configs: gcc-11 }
- { os: ubuntu-20.04, configs: pam }
- { os: ubuntu-20.04, configs: kitchensink }
- { os: ubuntu-20.04, configs: hardenedmalloc }