File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Windows
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ vs2019 :
7+ runs-on : windows-latest
8+
9+ steps :
10+ - uses : actions/checkout@v2
11+
12+ - name : Cache vcpkg
13+ uses : actions/cache@v2
14+ id : cache-vcpkg
15+ with :
16+ path : vcpkg/
17+ key : vcpkg-x64-windows
18+
19+ - name : Install Dependencies
20+ if : ${{ !steps.cache-vcpkg.outputs.cache-hit }}
21+ shell : pwsh
22+ run : |
23+ git clone https://github.com/microsoft/vcpkg
24+ cd vcpkg
25+ .\bootstrap-vcpkg.bat
26+ .\vcpkg integrate install
27+ .\vcpkg install cppgraphqlgen gtest --triplet x64-windows
28+
29+ - name : Configure
30+ shell : pwsh
31+ run : |
32+ $vcpkgToolchain = Join-Path '.\vcpkg' '.\scripts\buildsystems\vcpkg.cmake' -Resolve
33+
34+ npm config set cmake_CMAKE_TOOLCHAIN_FILE $vcpkgToolchain
35+
36+ - name : Build
37+ run : npm install
You can’t perform that action at this time.
0 commit comments