Skip to content

Commit c97e614

Browse files
committed
Action
Signed-off-by: Raul Metsma <[email protected]>
1 parent 18931c8 commit c97e614

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.github/vcpkg.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "web-eid-app",
3+
"dependencies": ["openssl", "gtest"],
4+
"builtin-baseline": "bc38a15b0bee8bc48a49ea267cc32fbb49aedfc4"
5+
}

.github/workflows/cmake-windows.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,23 @@ jobs:
1414
- name: Checkout code
1515
uses: actions/checkout@v4
1616

17+
- name: Cache vcpkg
18+
uses: actions/cache@v4
19+
with:
20+
path: ${{ github.workspace }}/vcpkg_cache
21+
key: vcpkg-${{ hashFiles('vcpkg.json') }}
22+
1723
- name: Prepare vcpkg and libraries
18-
uses: lukka/run-vcpkg@v7
24+
uses: lukka/run-vcpkg@v11
1925
with:
20-
vcpkgArguments: gtest:x64-windows openssl:x64-windows
21-
vcpkgTriplet: x64-windows
22-
vcpkgGitCommitId: 031ad89ce6c575df35a8e58707ad2c898446c63e
26+
vcpkgJsonGlob: .github/vcpkg.json
27+
runVcpkgInstall: true
28+
env:
29+
VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/vcpkg_cache,readwrite
30+
VCPKG_INSTALLED_DIR: ${{ github.workspace }}/build/vcpkg_installed
2331

2432
- name: Configure CMake
25-
run: cmake -A x64 "-DCMAKE_TOOLCHAIN_FILE=${env:VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_BUILD_TYPE=${env:BUILD_TYPE}" -S . -B build
33+
run: cmake -A x64 -B build -S . -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_TOOLCHAIN_FILE=${{ env.RUNVCPKG_VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake
2634

2735
- name: Build
2836
run: cmake --build build --config ${env:BUILD_TYPE}

0 commit comments

Comments
 (0)