Skip to content

Commit

Permalink
[CI] [GHA] Download ninja from GitHub instead of installing through…
Browse files Browse the repository at this point in the history
… `choco` in Windows workflows (openvinotoolkit#22570)

* download ninja from github

* add ninja to path

* add note

* add retries
  • Loading branch information
akashchi authored Jan 31, 2024
1 parent 79b4645 commit db4b33c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ jobs:
version: "v0.7.5"

- name: Install build dependencies
run: choco install --no-progress ninja
run: |
Invoke-WebRequest https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-win.zip -OutFile ninja-win.zip -MaximumRetryCount 10
Expand-Archive -Force ninja-win.zip
# Add it to the GitHub Path so it would be available in the subsequent steps
Add-Content -Path $env:GITHUB_PATH -Value "${{ github.workspace }}/ninja-win"
#
# Build
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/windows_conditional_compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,14 @@ jobs:
- name: Install sccache
uses: mozilla-actions/sccache-action@v0.0.4
with:
version: "v0.5.4"
version: "v0.7.5"

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

0 comments on commit db4b33c

Please sign in to comment.