@@ -311,15 +311,16 @@ jobs:
311311 # Upgrading it mid-session changes the shared memory layout (60344 -> 59320),
312312 # which causes subsequent fork() calls to fail with EAGAIN (exit code 254).
313313 shell : ' C:\msys64\usr\bin\bash.exe --login -eo pipefail {0}'
314+ # test Cygwin & MinGW(UCRT) instead of pre-installed Rust.
314315 run : |
315- pacman -Sy --noconfirm --needed base-devel libopenssl make openssl-devel pkgconf rust
316+ pacman -Sy --noconfirm --needed base-devel libopenssl make openssl-devel pkgconf rust \
317+ mingw-w64-ucrt-x86_64-openssl mingw-w64-ucrt-x86_64-rust
316318 env :
317319 CHERE_INVOKING : 1
318320 - name : " `(x86_64-pc-cygwin) make install PROG_PREFIX=uu- PROFILE=release-small COMPLETIONS=n MANPAGES=n LOCALES=n`"
319321 shell : ' C:\msys64\usr\bin\bash.exe --login -eo pipefail {0}'
320322 run : |
321323 set -x
322- export OPENSSL_NO_VENDOR=1
323324 export CARGOFLAGS="--features openssl"
324325 DESTDIR=/tmp/c make install PROG_PREFIX=uu- PROFILE=release-small COMPLETIONS=n MANPAGES=n LOCALES=n
325326 # Check that cksum is linked with openssl (e.g. msys-crypto-*.dll)
@@ -339,6 +340,7 @@ jobs:
339340 bsdtar -caf x86_64-pc-cygwin.tar.zst -C /tmp/c/usr/local bin
340341 env :
341342 CHERE_INVOKING : 1
343+ OPENSSL_NO_VENDOR : " 1"
342344 RUST_BACKTRACE : " 1"
343345 - name : Publish
344346 uses : softprops/action-gh-release@v3
@@ -351,14 +353,21 @@ jobs:
351353 individual-x86_64-pc-cygwin.tar.zst
352354 env :
353355 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
354- - name : " `make install`"
355- shell : bash
356+ - name : " `make install` (MinGW UCRT)"
357+ shell : ' C:\msys64\usr\bin\bash.exe --login -eo pipefail {0}'
358+ env :
359+ CHERE_INVOKING : 1
360+ MSYSTEM : " UCRT64"
361+ OPENSSL_DIR : " /ucrt64"
362+ OPENSSL_NO_VENDOR : " 1"
363+ OPENSSL_STATIC : " 0"
356364 run : |
357365 set -x
366+ export CARGOFLAGS="--features openssl"
358367 # Check that we exclude unix programs to avoid build failure
359368 # Windows's stdbuf depends on Cygwin's libstdbuf. So make should not try to install libstdbuf
360369 make install DESTDIR=/tmp/w PREFIX=/tmp/usr MULTICALL=y COMPLETIONS=n MANPAGES=n LOCALES=n \
361- SKIP_UTILS="arch b2sum base32 base64 basename basenc cat cksum comm cp csplit cut date dd df dir dircolors dirname du echo env expand expr factor false fmt fold head hostname hostid join link ln ls md5sum mkdir mktemp more mv nl nproc numfmt od paste pathchk pr printenv printf ptx pwd readlink realpath rm rmdir seq sha1sum sha224sum sha256sum sha384sum sha512sum shred shuf sleep sort split sum sync tac tail tee test touch tr true truncate tsort tty uname unexpand uniq unlink vdir wc whoami yes"
370+ SKIP_UTILS="arch b2sum base32 base64 basename basenc cat comm cp csplit cut date dd df dir dircolors dirname du echo env expand expr factor false fmt fold head hostname hostid join link ln ls md5sum mkdir mktemp more mv nl nproc numfmt od paste pathchk pr printenv printf ptx pwd readlink realpath rm rmdir seq sha1sum sha224sum sha256sum sha384sum sha512sum shred shuf sleep sort split sum sync tac tail tee test touch tr true truncate tsort tty uname unexpand uniq unlink vdir wc whoami yes"
362371 target/release/coreutils.exe stdbuf --version
363372
364373 test_busybox :
0 commit comments