Commit 7a23d6f
ci(rp-4): Windows CLI — install zip via choco + as_posix() on ORT_CAPI
build-cli-windows v0.1.7 (CI run 26522212284) still failed at 'Package
zip' despite the bsdtar fallback in package_cli_tarball.sh. Root cause:
Git Bash on windows-latest shadows the Windows-native tar.exe (bsdtar)
with its own GNU /usr/bin/tar, so the bsdtar-detection branch never
fires, and the standalone zip binary is also absent from default PATH.
Fixes:
- Stage ORT runtime: emit ORT_STAGE_DIR with .as_posix() so the
path uses forward slashes consistently; mixed slashes from default
pathlib repr (C:\foo\bar) caused the script's bash tests to behave
inconsistently under MSYS.
- New step 'Install zip via choco' before the packaging step. choco
is pre-installed on windows-latest runners; the zip package wraps
the standard Info-ZIP build. Once zip is on PATH, the existing
script branch picks it up.
This is belt-and-suspenders: even if bsdtar detection had worked,
having zip available is the more portable answer (matches what the
macOS / Linux jobs implicitly assume — that their packaging
primitive is on PATH).
Recovery: cut v0.1.8 from this HEAD to validate.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 8b1ea96 commit 7a23d6f
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
726 | | - | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
727 | 731 | | |
728 | 732 | | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
729 | 737 | | |
730 | 738 | | |
731 | 739 | | |
| |||
0 commit comments