Skip to content

Commit 2a1c922

Browse files
committed
probe: show mcpp new, POSIX temp path
1 parent d1a1cab commit 2a1c922

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎.github/workflows/probe-old-engine-msvc-sysroot.yml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ jobs:
2424
export MCPP_VENDORED_XLINGS="$XLINGS_BIN"
2525
"$MCPP" --version
2626
"$MCPP" self config --mirror GLOBAL
27-
reg="$MCPP_HOME/registry/data/xpkgs"
27+
reg="$(cygpath -u "$MCPP_HOME")/registry/data/xpkgs"
28+
tmp="$(cygpath -u "$RUNNER_TEMP")"
2829
probe() {
29-
local name=$1 value=$2 d="$RUNNER_TEMP/p-$name"
30+
local name=$1 value=$2 d="$tmp/p-$1"
3031
rm -rf "$d"; mkdir -p "$d"; cd "$d"
31-
"$MCPP" new hello > /dev/null 2>&1; cd hello
32-
[ -n "$value" ] && printf '\n[target.x86_64-windows-msvc]\nsysroot = "%s"\n' "$value" >> mcpp.toml
32+
"$MCPP" new hello || { echo "RESULT $name: mcpp new failed"; return 0; }
33+
cd hello
34+
if [ -n "$value" ]; then printf '\n[target.x86_64-windows-msvc]\nsysroot = "%s"\n' "$value" >> mcpp.toml; fi
3335
echo "::group::$name: mcpp.toml"; cat mcpp.toml; echo "::endgroup::"
3436
{ ls "$reg" 2>/dev/null || true; } | sort > before.txt
3537
set +e

0 commit comments

Comments
 (0)