From 770d0dbdcdc1e54f66c2ed2c8855a2f9cf2af61a Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 13 Dec 2021 21:20:27 +0800 Subject: ... --- .github/workflows/windows-ci.yml | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/windows-ci.yml (limited to '.github/workflows/windows-ci.yml') 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 -- cgit v1.2.3