aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/windows-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/windows-ci.yml')
-rw-r--r--.github/workflows/windows-ci.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml
new file mode 100644
index 00000000..4a3be7cf
--- /dev/null
+++ b/.github/workflows/windows-ci.yml
@@ -0,0 +1,41 @@
+name: Windows CI
+
+on:
+ push:
+ branches: [master]
+ paths-ignore:
+ - "docs/**"
+ - "**/README.md"
+ pull_request:
+ branches: [master]
+ paths-ignore:
+ - "docs/**"
+ - "**/README.md"
+
+jobs:
+ build:
+ name: Build
+ runs-on: windows-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Restore Cache
+ uses: actions/cache@v2
+ with:
+ path: ~/AppData/Local/vcpkg/archives
+ key: vcpkg-${{ runner.os }}
+
+ - name: Setup Ninja
+ uses: ashutoshvarma/setup-ninja@master
+ with:
+ version: 1.10.2
+
+ - name: Run build script
+ shell: pwsh
+ run: |
+ . ./tools/Use-VC.ps1
+ Use-VC
+ mkdir build && cd build
+ cmake .. -G Ninja -DCMAKE_BUILD_TYPE:STRING=Debug
+ ninja all