The most recent version of the Github ubuntu-latest image sets the
password field to "!" which sshd considers to be a locked account,
breaking most of the tests.
#!/bin/sh
+config="$1"
+target="$2"
+
PACKAGES=""
- . .github/configs $@
+ . .github/configs ${config}
host=`./config.guess`
echo "config.guess: $host"
PACKAGER=apt
esac
-TARGETS=$@
+TARGETS=${config}
INSTALL_FIDO_PPA="no"
export DEBIAN_FRONTEND=noninteractive
)
/usr/local/bin/plink -V
fi
+
+# This is the github "target" as specificed in the yml file.
+case "${target}" in
+ubuntu-latest)
+ echo ubuntu-latest target: setting random password string.
+ pw=$(openssl rand -base64 9)
+ sudo usermod --password "${pw}" runner
+ sudo usermod --unlock runner
+ ;;
+esac
CYGWIN: "winsymlinks:native"
- uses: actions/checkout@main
- name: setup CI system
- run: sh ./.github/setup_ci.sh ${{ matrix.config }}
+ run: sh ./.github/setup_ci.sh ${{ matrix.config }} ${{ matrix.target }}
env:
CYGWIN_SETUP: ${{ steps.cygwin_install.outputs.setup }}
- name: autoreconf