fix: extract Windows release ZIPs in CI

This commit is contained in:
Armin Ronacher 2026-08-24 12:53:52 +02:00
parent 31d4ed5860
commit bfb004d441

View file

@ -182,7 +182,14 @@ jobs:
esac
mkdir -p extracted
tar -xf "${archive}" -C extracted
if [[ "${archive}" == *.zip ]]; then
export ARCHIVE_PATH="$(cygpath -w "${archive}")"
export DESTINATION_PATH="$(cygpath -w extracted)"
powershell.exe -NoProfile -NonInteractive -Command \
'Expand-Archive -LiteralPath $env:ARCHIVE_PATH -DestinationPath $env:DESTINATION_PATH -Force'
else
tar -xf "${archive}" -C extracted
fi
echo "root=${root}" >> "${GITHUB_OUTPUT}"
echo "binary=${binary}" >> "${GITHUB_OUTPUT}"