ci: force vcpkg classic mode via env var + cwd C:\ (CLI flag silently ignored)
Build patched rustdesk.exe / Build Win x64 (Sciter UI) (push) Failing after 2m19s
Build patched rustdesk.exe / Build Win x64 (Sciter UI) (push) Failing after 2m19s
This commit is contained in:
@@ -71,11 +71,19 @@ jobs:
|
|||||||
- name: Install vcpkg native deps
|
- name: Install vcpkg native deps
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
# --feature-flags=-manifests forces classic mode -- the repo
|
# Force classic mode -- the repo has a vcpkg.json that pulls
|
||||||
# has a vcpkg.json that pulls in ffmpeg+amf+nvcodec+qsv (hwcodec
|
# in ffmpeg+amf+nvcodec+qsv (hwcodec) which is a 2hr build and
|
||||||
# path) which is a 2hr build and not needed for Sciter UI.
|
# not needed for Sciter UI. The CLI flag --feature-flags is
|
||||||
# Sciter only needs the codec/image libs below.
|
# ignored by some vcpkg versions when manifest is auto-detected;
|
||||||
C:\vcpkg\vcpkg.exe install --feature-flags=-manifests --triplet x64-windows-static libvpx libyuv opus aom libjpeg-turbo
|
# env var VCPKG_FEATURE_FLAGS=-manifests is honored reliably.
|
||||||
|
# Also run from C:\ so vcpkg's upward-walk can't find the
|
||||||
|
# repo's vcpkg.json.
|
||||||
|
$env:VCPKG_FEATURE_FLAGS = "-manifests"
|
||||||
|
Push-Location C:\
|
||||||
|
try {
|
||||||
|
C:\vcpkg\vcpkg.exe install --triplet x64-windows-static libvpx libyuv opus aom libjpeg-turbo
|
||||||
|
if ($LASTEXITCODE -ne 0) { throw "vcpkg install failed (exit $LASTEXITCODE)" }
|
||||||
|
} finally { Pop-Location }
|
||||||
|
|
||||||
- name: cargo build --release (Sciter UI)
|
- name: cargo build --release (Sciter UI)
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|||||||
Reference in New Issue
Block a user