]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Add test configs for MUSL C library.
authorDarren Tucker <dtucker@dtucker.net>
Fri, 18 Feb 2022 01:12:21 +0000 (12:12 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 18 Feb 2022 01:12:21 +0000 (12:12 +1100)
.github/configs
.github/setup_ci.sh
.github/workflows/c-cpp.yml

index 8287002bfb1a469fd310dc53fe9cc810467844e8..87f2e46b611dc6f64df6548090ca1f8c0f0fe81d 100755 (executable)
@@ -67,6 +67,12 @@ case "$config" in
     libedit)
        CONFIGFLAGS="--with-libedit"
        ;;
+    musl)
+       CC="musl-gcc"
+       CONFIGFLAGS="--without-zlib"
+       LIBCRYPTOFLAGS="--without-openssl"
+       TEST_TARGET="t-exec"
+       ;;
     pam-krb5)
        CONFIGFLAGS="--with-pam --with-kerberos5"
        SSHD_CONFOPTS="UsePam yes"
index 454767b49f16559c42f311dacda801e37f888855..ca37f8c5512fd313b636317f3e45205d2f4ddc51 100755 (executable)
@@ -57,6 +57,9 @@ for TARGET in $TARGETS; do
     hardenedmalloc)
         INSTALL_HARDENED_MALLOC=yes
         ;;
+    musl)
+       PACKAGES="$PACKAGES musl-tools"
+       ;;
     tcmalloc)
         PACKAGES="$PACKAGES libgoogle-perftools-dev"
         ;;
index 9df10e7ccdd84193c722a985fb219214e75c6336..5ee896308478535a888f32b7b7df5ecfda87c442 100644 (file)
@@ -38,6 +38,7 @@ jobs:
           - { os: ubuntu-20.04, configs: kitchensink }
           - { os: ubuntu-20.04, configs: hardenedmalloc }
           - { os: ubuntu-20.04, configs: tcmalloc }
+          - { os: ubuntu-20.04, configs: musl }
           - { os: ubuntu-latest, configs: libressl-master }
           - { os: ubuntu-latest, configs: libressl-2.2.9 }
           - { os: ubuntu-latest, configs: libressl-2.8.3 }