*cygwin)
PACKAGER=setup
echo Setting CYGWIN system environment variable.
- setx CYGWIN "binmode"
+ setx CYGWIN "winsymlinks:native"
echo Removing extended ACLs so umask works as expected.
+ set -x
setfacl -b . regress
+ icacls regress /c /t /q /Inheritance:d
+ icacls regress /c /t /q /Grant ${USERNAME}:F
+ icacls regress /c /t /q /Remove:g "Authenticated Users" \
+ BUILTIN\\Administrators BUILTIN Everyone System Users
+ takeown /F regress
+ icacls regress
+ set +x
PACKAGES="$PACKAGES,autoconf,automake,cygwin-devel,gcc-core"
PACKAGES="$PACKAGES,make,openssl,libssl-devel,zlib-devel"
;;
fi
;;
setup)
- if /cygdrive/c/setup.exe -q -P `echo "$PACKAGES" | tr ' ' ,`; then
+ setup="/cygdrive/$(echo "${CYGWIN_SETUP}" | tr -d : | tr '\' '/')"
+ if "${setup}" -q -P `echo "$PACKAGES" | tr ' ' ,`; then
PACKAGES=""
fi
;;
if: ${{ startsWith(matrix.target, 'windows') }}
run: git config --global core.autocrlf input
- name: install cygwin
+ id: cygwin_install
if: ${{ startsWith(matrix.target, 'windows') }}
uses: cygwin/cygwin-install-action@master
+ env:
+ CYGWIN: "winsymlinks:native"
- uses: actions/checkout@main
- name: setup CI system
run: sh ./.github/setup_ci.sh ${{ matrix.config }}
+ env:
+ CYGWIN_SETUP: ${{ steps.cygwin_install.outputs.setup }}
- name: autoreconf
run: sh -c autoreconf
- name: configure