From d741a85e70a1f6c2dbda7ee1cd46cc64662d110f Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Wed, 7 Feb 2024 15:04:40 +1100 Subject: [PATCH] fixup --- .github/setup_ci.sh | 24 ++++++++++++++++-------- .github/workflows/c-cpp.yml | 2 ++ 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/setup_ci.sh b/.github/setup_ci.sh index ffb1064d4578..bad76669ba7f 100755 --- a/.github/setup_ci.sh +++ b/.github/setup_ci.sh @@ -142,8 +142,8 @@ for TARGET in $TARGETS; do INSTALL_BORINGSSL=1 PACKAGES="${PACKAGES} cmake ninja-build" ;; - putty-snapshot) - INSTALL_PUTTY=snapshot + putty-*) + INSTALL_PUTTY=$(echo "${TARGET}" | cut -f2 -d-) PACKAGES="${PACKAGES} cmake" ;; valgrind*) @@ -246,10 +246,18 @@ if [ ! -z "${INSTALL_ZLIB}" ]; then sudo make install prefix=/opt/zlib) fi -if [ "${INSTALL_PUTTY}" = "snapshot" ]; then - (cd ${HOME} && - wget -q https://tartarus.org/~simon/putty-snapshots/putty.tar.gz && - tar xfz putty.tar.gz && cd putty-* && cmake . && cmake --build . && - sudo cmake --build . --target install) - /usr/local/bin/plink -V +if [ ! -z "${INSTALL_PUTTY}" ]; then + case "${ver}" in + snapshot) + tarball=putty.tar.gz + (cd /tmp && wget https://tartarus.org/~simon/putty-snapshots/${tarball}) + ;; + *) + tarball=putty-${ver}.tar.gz + (cd /tmp && wget https://the.earth.li/~sgtatham/putty/${ver}/${tarball}) + ;; + esac + (cd ${HOME} && tar xfz /tmp/putty.tar.gz && cd putty-* && cmake . && + cmake --build . && sudo cmake --build . --target install) + /usr/local/bin/plink -V fi diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index e27ec2611df8..cfd03d2e001c 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -77,6 +77,8 @@ jobs: # - { target: ubuntu-latest, config: openssl-3.0 } # stable branch # - { target: ubuntu-latest, config: openssl-3.2 } # stable branch # - { target: ubuntu-latest, config: zlib-develop } + - { target: ubuntu-latest, config: putty-0.77 } + - { target: ubuntu-latest, config: putty-0.80 } - { target: ubuntu-latest, config: putty-snapshot } # - { target: ubuntu-22.04, config: pam } # - { target: ubuntu-22.04, config: krb5 }