mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-26 14:34:30 +00:00
GHA CI: simplify vcpkg commands
This commit is contained in:
parent
5b57abc7d8
commit
479639162d
13
.github/workflows/ci_windows.yaml
vendored
13
.github/workflows/ci_windows.yaml
vendored
@ -44,26 +44,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies from vcpkg
|
- name: Install dependencies from vcpkg
|
||||||
run: |
|
run: |
|
||||||
# tell vcpkg to only build Release variants of the dependencies
|
|
||||||
New-Item `
|
|
||||||
-Path "${{ github.workspace }}" `
|
|
||||||
-Name "triplets_overlay" `
|
|
||||||
-ItemType Directory
|
|
||||||
Copy-Item `
|
|
||||||
"${{ env.RUNVCPKG_VCPKG_ROOT }}/triplets/x64-windows-static.cmake" `
|
|
||||||
"${{ github.workspace }}/triplets_overlay/x64-windows-static-release.cmake"
|
|
||||||
Add-Content `
|
|
||||||
"${{ github.workspace }}/triplets_overlay/x64-windows-static-release.cmake" `
|
|
||||||
-Value "set(VCPKG_BUILD_TYPE release)"
|
|
||||||
# clear buildtrees after each package installation to reduce disk space requirements
|
# clear buildtrees after each package installation to reduce disk space requirements
|
||||||
$packages = `
|
$packages = `
|
||||||
"openssl:x64-windows-static-release",
|
"openssl:x64-windows-static-release",
|
||||||
"zlib:x64-windows-static-release"
|
"zlib:x64-windows-static-release"
|
||||||
${{ env.RUNVCPKG_VCPKG_ROOT }}/vcpkg.exe upgrade `
|
${{ env.RUNVCPKG_VCPKG_ROOT }}/vcpkg.exe upgrade `
|
||||||
--overlay-triplets="${{ github.workspace }}/triplets_overlay" `
|
|
||||||
--no-dry-run
|
--no-dry-run
|
||||||
${{ env.RUNVCPKG_VCPKG_ROOT }}/vcpkg.exe install `
|
${{ env.RUNVCPKG_VCPKG_ROOT }}/vcpkg.exe install `
|
||||||
--overlay-triplets="${{ github.workspace }}/triplets_overlay" `
|
|
||||||
--clean-after-build `
|
--clean-after-build `
|
||||||
$packages
|
$packages
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user