mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
GHA CI: use built-in ninja
`choco install` is slow: A basically simple download and extract operation takes 20sec compared to ~3sec when done manually. So we add a conditional for it.
This commit is contained in:
5
.github/workflows/ci_windows.yaml
vendored
5
.github/workflows/ci_windows.yaml
vendored
@@ -32,7 +32,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Install build tools
|
- name: Install build tools
|
||||||
run: |
|
run: |
|
||||||
|
if ((Get-Command "ninja.exe" -ErrorAction SilentlyContinue) -eq $null)
|
||||||
|
{
|
||||||
choco install ninja
|
choco install ninja
|
||||||
|
}
|
||||||
|
where.exe ninja
|
||||||
|
ninja --version
|
||||||
|
|
||||||
# use the preinstalled vcpkg from image
|
# use the preinstalled vcpkg from image
|
||||||
# https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md#package-management
|
# https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md#package-management
|
||||||
|
|||||||
Reference in New Issue
Block a user