CI: mingw: Tweak misc system & package info

This commit is contained in:
Nobuyoshi Nakada 2025-08-10 00:55:34 +09:00
parent 2a6345e957
commit 90f8199412
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465

View file

@ -86,25 +86,37 @@ jobs:
- name: Misc system & package info - name: Misc system & package info
working-directory: working-directory:
run: | run: |
# show where group() { echo ::group::$'\e[94;1m'"$*"$'\e[m'; }
result=true endgroup() { echo ::endgroup::; }
for e in gcc.exe ragel.exe make.exe libcrypto-3-x64.dll libssl-3-x64.dll; do
echo ::group::$'\e[93m'$e$'\e[m' group Path
where $e || result=false cygpath -wa / . $(type -p cygpath bash sh)
echo ::endgroup:: endgroup
done
# show version I() {
for e in gcc ragel make "openssl version"; do group $1
case "$e" in *" "*) ;; *) e="$e --version";; esac run Where type -pa $1 && { [ $# -eq 1 ] || run Version "$@"; } ||
echo ::group::$'\e[93m'$e$'\e[m' failed+=($1)
$e || result=false endgroup
echo ::endgroup:: }
done run() { local w m=$1; shift; w="$("$@")" && show "$m" && indent "$w"; }
# show packages indent() { [ -z "$1" ] || echo "$1" | /bin/sed '/^$/!s/^/ /'; }
echo ::group::$'\e[93m'Packages$'\e[m' show() { echo $'\e[96m'"$*"$'\e[m'; }
pacman -Qs mingw-w64-ucrt-x86_64-* | sed -n "s,local/mingw-w64-ucrt-x86_64-,,p"
echo ::endgroup:: failed=()
$result
I gcc.exe --version
I ragel.exe --version
I make.exe --version
I openssl.exe version
I libcrypto-3-x64.dll
I libssl-3-x64.dll
group Packages
pacman -Qs mingw-w64-ucrt-x86_64-* | /bin/sed -n "s,local/mingw-w64-ucrt-x86_64-,,p"
endgroup
[ ${#failed[@]} -eq 0 ]
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with: with: