Skip to content

Commit 8a1b2c0

Browse files
committed
Windows
1 parent 8c881ce commit 8a1b2c0

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

.github/workflows/windows.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,32 @@ jobs:
7676
echo "Using nightly version: $NIGHTLY_VERSION"
7777
echo "ov_version=$NIGHTLY_VERSION" >> $GITHUB_OUTPUT
7878
79-
# Get Windows package list for this version
80-
WINDOWS_PACKAGES=$(curl -s https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/$NIGHTLY_VERSION/windows/)
81-
82-
# Find the Windows x86_64 zip file
83-
WINDOWS_ZIP=$(echo "$WINDOWS_PACKAGES" | grep -oE 'w_openvino_toolkit_windows_[^"]+_x86_64\.zip' | head -1)
79+
# Get Windows package info from filetree.json API
80+
echo "Getting Windows packages for version: $NIGHTLY_VERSION"
81+
WINDOWS_ZIP=$(curl -s https://storage.openvinotoolkit.org/filetree.json | jq -r --arg version "$NIGHTLY_VERSION" '
82+
.children[] | select(.name == "repositories") |
83+
.children[] | select(.name == "openvino") |
84+
.children[] | select(.name == "packages") |
85+
.children[] | select(.name == "nightly") |
86+
.children[] | select(.name == $version) |
87+
.children[] | select(.name == "windows") |
88+
.children[] | select(.type == "file" and (.name | test("^w_openvino_toolkit_windows_.*_x86_64\\.zip$"))) |
89+
.name
90+
')
8491
8592
if [ -z "$WINDOWS_ZIP" ]; then
8693
echo "Error: Could not find Windows x86_64 package for version $NIGHTLY_VERSION"
94+
echo "Available Windows packages:"
95+
curl -s https://storage.openvinotoolkit.org/filetree.json | jq -r --arg version "$NIGHTLY_VERSION" '
96+
.children[] | select(.name == "repositories") |
97+
.children[] | select(.name == "openvino") |
98+
.children[] | select(.name == "packages") |
99+
.children[] | select(.name == "nightly") |
100+
.children[] | select(.name == $version) |
101+
.children[] | select(.name == "windows") |
102+
.children[] | select(.type == "file") |
103+
.name
104+
'
87105
exit 1
88106
fi
89107

0 commit comments

Comments
 (0)