ci: fix vcpkg commit hash, add vcpkg.json manifest
Some checks are pending
Windows Build / Windows x64 (MSVC + vcpkg) (push) Waiting to run
Some checks are pending
Windows Build / Windows x64 (MSVC + vcpkg) (push) Waiting to run
- Use valid vcpkg commit hash (4b77da7) - Add vcpkg.json for manifest-mode dependency management Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
16
.github/workflows/windows.yml
vendored
16
.github/workflows/windows.yml
vendored
@@ -14,14 +14,12 @@ jobs:
|
||||
|
||||
env:
|
||||
VCPKG_DEFAULT_TRIPLET: x64-windows
|
||||
# vcpkg Binary Caching → deutlich schnellere CI-Durchläufe
|
||||
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# vcpkg Binary Cache via GitHub Actions Cache
|
||||
- name: Export GitHub Actions cache vars
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
@@ -32,11 +30,10 @@ jobs:
|
||||
- name: Setup vcpkg
|
||||
uses: lukka/run-vcpkg@v11
|
||||
with:
|
||||
vcpkgGitCommitId: '0a66b5fd01fc1515eb7a48c6dc5b1dcc1ce2f6bc' # stable snapshot
|
||||
vcpkgGitCommitId: '4b77da7fed37817f124936239197833469f1b9a8'
|
||||
|
||||
- name: Install dependencies via vcpkg
|
||||
run: |
|
||||
vcpkg install opencv4:x64-windows libraw:x64-windows qt:x64-windows
|
||||
run: vcpkg install --triplet x64-windows
|
||||
shell: pwsh
|
||||
|
||||
- name: Configure CMake
|
||||
@@ -53,17 +50,17 @@ jobs:
|
||||
run: cmake --build build --config Release --parallel
|
||||
shell: pwsh
|
||||
|
||||
- name: Install (collect EXE + DLLs)
|
||||
- name: Install
|
||||
run: cmake --install build --prefix dist
|
||||
shell: pwsh
|
||||
|
||||
- name: Deploy Qt DLLs (windeployqt)
|
||||
run: |
|
||||
$qtBin = (Get-ChildItem "$env:VCPKG_ROOT/installed/x64-windows/tools/qt6/bin" -Filter "windeployqt*.exe" -ErrorAction SilentlyContinue | Select-Object -First 1)?.FullName
|
||||
$qtBin = Get-ChildItem "$env:VCPKG_ROOT/installed/x64-windows/tools" -Recurse -Filter "windeployqt*.exe" -ErrorAction SilentlyContinue | Select-Object -First 1
|
||||
if ($qtBin) {
|
||||
& $qtBin --release --no-translations dist/bin/negative-converter.exe
|
||||
& $qtBin.FullName --release --no-translations dist/bin/negative-converter.exe
|
||||
} else {
|
||||
Write-Warning "windeployqt not found, skipping Qt DLL deployment"
|
||||
Write-Warning "windeployqt not found, skipping"
|
||||
}
|
||||
shell: pwsh
|
||||
|
||||
@@ -74,7 +71,6 @@ jobs:
|
||||
path: dist/
|
||||
if-no-files-found: error
|
||||
|
||||
# Nur bei Git-Tags: Release erstellen und ZIP anhängen
|
||||
- name: Create ZIP for release
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
run: Compress-Archive -Path dist/* -DestinationPath negative-converter-windows-x64.zip
|
||||
|
||||
12
vcpkg.json
Normal file
12
vcpkg.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "negative-converter",
|
||||
"version": "0.1.0",
|
||||
"dependencies": [
|
||||
"opencv4",
|
||||
"libraw",
|
||||
{
|
||||
"name": "qt",
|
||||
"features": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user