Skip to content

Commit 717e47c

Browse files
committed
Add CI workflow
1 parent 7beed58 commit 717e47c

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/windows.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

0 commit comments

Comments
 (0)