--- /dev/null
+#!/bin/sh
+
+ver="$1"
+
+echo
+echo --------------------------------------
+echo Installing PuTTY version ${ver}
+echo --------------------------------------
+
+cd /tmp
+
+case "${ver}" in
+snapshot)
+ tarball=putty.tar.gz
+ url=https://tartarus.org/~simon/putty-snapshots/${tarball}
+ ;;
+*)
+ tarball=putty-${ver}.tar.gz
+ url=https://the.earth.li/~sgtatham/putty/${ver}/${tarball}
+ ;;
+esac
+
+if [ ! -f ${tarball} ]; then
+ wget -q ${url}
+fi
+
+mkdir -p /tmp/puttybuild
+cd /tmp/puttybuild
+
+tar xfz /tmp/${tarball} && cd putty-*
+if [ -f CMakeLists.txt ]; then
+ cmake . && cmake --build . -j4 && sudo cmake --build . --target install
+else
+ ./configure && make -j4 && sudo make install
+fi
+sudo rm -rf /tmp/puttybuild
+/usr/local/bin/plink -V
env="env${env}"
fi
+if [ "$1" = "putty-versions" ]; then
+ for ver in 0.71 0.72 0.73 0.74 0.75 0.76 0.77 0.78 0.79 0.80 \
+ 0.81 0.82 0.83 snapshot; do
+ .github/install_putty.sh "${ver}"
+ ${env} make ${TEST_TARGET} \
+ SKIP_LTESTS="${SKIP_LTESTS}" LTESTS="${LTESTS}"
+ done
+
+ exit 0
+fi
+
if [ -z "${LTESTS}" ]; then
${env} make ${TEST_TARGET} SKIP_LTESTS="${SKIP_LTESTS}"
else
PACKAGES="${PACKAGES} cmake ninja-build"
;;
putty-*)
- INSTALL_PUTTY=$(echo "${TARGET}" | cut -f2 -d-)
+ INSTALL_PUTTY=0.83
PACKAGES="${PACKAGES} cmake"
;;
valgrind*)
fi
if [ ! -z "${INSTALL_PUTTY}" ]; then
- ver="${INSTALL_PUTTY}"
- case "${INSTALL_PUTTY}" 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/${tarball} && cd putty-*
- if [ -f CMakeLists.txt ]; then
- cmake . && cmake --build . && sudo cmake --build . --target install
- else
- ./configure && make && sudo make install
- fi
- )
- /usr/local/bin/plink -V
+ .github/install_putty.sh "${INSTALL_PUTTY}"
fi
# If we're running on an ephemeral VM, set a random password and set
- { target: ubuntu-latest, config: openssl-3.4 } # stable branch
- { target: ubuntu-latest, config: openssl-3.5 } # stable branch
- { target: ubuntu-latest, config: openssl-3.6 } # stable branch
- - { target: ubuntu-latest, config: putty-0.71 }
- - { target: ubuntu-latest, config: putty-0.72 }
- - { target: ubuntu-latest, config: putty-0.73 }
- - { target: ubuntu-latest, config: putty-0.74 }
- - { target: ubuntu-latest, config: putty-0.75 }
- - { target: ubuntu-latest, config: putty-0.76 }
- - { target: ubuntu-latest, config: putty-0.77 }
- - { target: ubuntu-latest, config: putty-0.78 }
- - { target: ubuntu-latest, config: putty-0.79 }
- - { target: ubuntu-latest, config: putty-0.80 }
- - { target: ubuntu-latest, config: putty-0.81 }
- - { target: ubuntu-latest, config: putty-0.82 }
- - { target: ubuntu-latest, config: putty-0.83 }
- - { target: ubuntu-latest, config: putty-snapshot }
+ - { target: ubuntu-latest, config: putty-versions }
- { target: ubuntu-latest, config: zlib-develop }
- { target: ubuntu-latest, config: tcmalloc }
- { target: ubuntu-latest, config: musl }