Skip to content

Commit db4b33c

Browse files
authored
[CI] [GHA] Download ninja from GitHub instead of installing through choco in Windows workflows (openvinotoolkit#22570)
* download ninja from github * add ninja to path * add note * add retries
1 parent 79b4645 commit db4b33c

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/windows.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,11 @@ jobs:
128128
version: "v0.7.5"
129129

130130
- name: Install build dependencies
131-
run: choco install --no-progress ninja
131+
run: |
132+
Invoke-WebRequest https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-win.zip -OutFile ninja-win.zip -MaximumRetryCount 10
133+
Expand-Archive -Force ninja-win.zip
134+
# Add it to the GitHub Path so it would be available in the subsequent steps
135+
Add-Content -Path $env:GITHUB_PATH -Value "${{ github.workspace }}/ninja-win"
132136
133137
#
134138
# Build

.github/workflows/windows_conditional_compilation.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,14 @@ jobs:
106106
- name: Install sccache
107107
uses: mozilla-actions/sccache-action@v0.0.4
108108
with:
109-
version: "v0.5.4"
109+
version: "v0.7.5"
110110

111111
- name: Install build dependencies
112-
run: choco install --no-progress ninja
112+
run: |
113+
Invoke-WebRequest https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-win.zip -OutFile ninja-win.zip -MaximumRetryCount 10
114+
Expand-Archive -Force ninja-win.zip
115+
# Add it to the GitHub Path so it would be available in the subsequent steps
116+
Add-Content -Path $env:GITHUB_PATH -Value "${{ github.workspace }}/ninja-win"
113117
114118
- name: Install python dependencies
115119
run: |

0 commit comments

Comments
 (0)