Add Cygwin (on windows-2019) test target.
In addition to installing the requisite Cygwin packages, we also need to explicitly invoke "sh" for steps that run other scripts since the runner environment doesn't understand #! paths.
This commit is contained in:
parent
5062ad4881
commit
a9305c4c73
|
@ -255,10 +255,13 @@ case "${TARGET_HOST}" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Unless specified otherwise, build without OpenSSL on Mac OS since
|
|
||||||
# modern versions don't ship with libcrypto.
|
|
||||||
case "`./config.guess`" in
|
case "`./config.guess`" in
|
||||||
|
*cygwin)
|
||||||
|
SUDO=""
|
||||||
|
;;
|
||||||
*-darwin*)
|
*-darwin*)
|
||||||
|
# Unless specified otherwise, build without OpenSSL on Mac OS since
|
||||||
|
# modern versions don't ship with libcrypto.
|
||||||
LIBCRYPTOFLAGS="--without-openssl"
|
LIBCRYPTOFLAGS="--without-openssl"
|
||||||
TEST_TARGET=t-exec
|
TEST_TARGET=t-exec
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -3,6 +3,13 @@
|
||||||
. .github/configs $@
|
. .github/configs $@
|
||||||
|
|
||||||
case "`./config.guess`" in
|
case "`./config.guess`" in
|
||||||
|
*cygwin)
|
||||||
|
echo Setting CYGWIN sustem environment variable.
|
||||||
|
setx CYGWIN "binmode"
|
||||||
|
id
|
||||||
|
chmod -R go-rw /cygdrive/d/a
|
||||||
|
umask 077
|
||||||
|
;;
|
||||||
*-darwin*)
|
*-darwin*)
|
||||||
brew install automake
|
brew install automake
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -15,7 +15,7 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
# First we test all OSes in the default configuration.
|
# First we test all OSes in the default configuration.
|
||||||
os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12]
|
os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12, windows-2019]
|
||||||
configs: [default]
|
configs: [default]
|
||||||
# Then we include any extra configs we want to test for specific VMs.
|
# Then we include any extra configs we want to test for specific VMs.
|
||||||
# Valgrind slows things down quite a bit, so start them first.
|
# Valgrind slows things down quite a bit, so start them first.
|
||||||
|
@ -79,13 +79,21 @@ jobs:
|
||||||
- { os: macos-12, configs: pam }
|
- { os: macos-12, configs: pam }
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: set cygwin git params
|
||||||
|
if: ${{ matrix.configs }} == 'windows-2019'
|
||||||
|
run: git config --global core.autocrlf input
|
||||||
|
- name: install cygwin
|
||||||
|
if: ${{ matrix.configs }} == 'windows-2019'
|
||||||
|
uses: cygwin/cygwin-install-action@master
|
||||||
|
with:
|
||||||
|
packages: autoconf, automake, cygwin-devel, gcc-core, make, openssl-devel, zlib-devel
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: setup CI system
|
- name: setup CI system
|
||||||
run: ./.github/setup_ci.sh ${{ matrix.configs }}
|
run: sh ./.github/setup_ci.sh ${{ matrix.configs }}
|
||||||
- name: autoreconf
|
- name: autoreconf
|
||||||
run: autoreconf
|
run: sh -c autoreconf
|
||||||
- name: configure
|
- name: configure
|
||||||
run: ./.github/configure.sh ${{ matrix.configs }}
|
run: sh ./.github/configure.sh ${{ matrix.configs }}
|
||||||
- name: save config
|
- name: save config
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
@ -96,7 +104,7 @@ jobs:
|
||||||
- name: make
|
- name: make
|
||||||
run: make -j2
|
run: make -j2
|
||||||
- name: make tests
|
- name: make tests
|
||||||
run: ./.github/run_test.sh ${{ matrix.configs }}
|
run: sh ./.github/run_test.sh ${{ matrix.configs }}
|
||||||
env:
|
env:
|
||||||
TEST_SSH_UNSAFE_PERMISSIONS: 1
|
TEST_SSH_UNSAFE_PERMISSIONS: 1
|
||||||
TEST_SSH_HOSTBASED_AUTH: yes
|
TEST_SSH_HOSTBASED_AUTH: yes
|
||||||
|
|
Loading…
Reference in New Issue