File tree Expand file tree Collapse file tree 1 file changed +31
-19
lines changed
Expand file tree Collapse file tree 1 file changed +31
-19
lines changed Original file line number Diff line number Diff line change @@ -86,25 +86,37 @@ jobs:
8686 - name : Misc system & package info
8787 working-directory :
8888 run : |
89- # show where
90- result=true
91- for e in gcc.exe ragel.exe make.exe libcrypto-3-x64.dll libssl-3-x64.dll; do
92- echo ::group::$'\e[93m'$e$'\e[m'
93- where $e || result=false
94- echo ::endgroup::
95- done
96- # show version
97- for e in gcc ragel make "openssl version"; do
98- case "$e" in *" "*) ;; *) e="$e --version";; esac
99- echo ::group::$'\e[93m'$e$'\e[m'
100- $e || result=false
101- echo ::endgroup::
102- done
103- # show packages
104- echo ::group::$'\e[93m'Packages$'\e[m'
105- pacman -Qs mingw-w64-ucrt-x86_64-* | sed -n "s,local/mingw-w64-ucrt-x86_64-,,p"
106- echo ::endgroup::
107- $result
89+ group() { echo ::group::$'\e[94;1m'"$*"$'\e[m'; }
90+ endgroup() { echo ::endgroup::; }
91+
92+ group Path
93+ cygpath -wa / . $(type -p cygpath bash sh)
94+ endgroup
95+
96+ I() {
97+ group $1
98+ run Where type -pa $1 && { [ $# -eq 1 ] || run Version "$@"; } ||
99+ failed+=($1)
100+ endgroup
101+ }
102+ run() { local w m=$1; shift; w="$("$@")" && show "$m" && indent "$w"; }
103+ indent() { [ -z "$1" ] || echo "$1" | /bin/sed '/^$/!s/^/ /'; }
104+ show() { echo $'\e[96m'"$*"$'\e[m'; }
105+
106+ failed=()
107+
108+ I gcc.exe --version
109+ I ragel.exe --version
110+ I make.exe --version
111+ I openssl.exe version
112+ I libcrypto-3-x64.dll
113+ I libssl-3-x64.dll
114+
115+ group Packages
116+ pacman -Qs mingw-w64-ucrt-x86_64-* | /bin/sed -n "s,local/mingw-w64-ucrt-x86_64-,,p"
117+ endgroup
118+
119+ [ ${#failed[@]} -eq 0 ]
108120
109121 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
110122 with :
You can’t perform that action at this time.
0 commit comments