diff options
| author | crupest <crupest@outlook.com> | 2021-12-13 21:20:27 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2021-12-13 21:20:27 +0800 |
| commit | 770d0dbdcdc1e54f66c2ed2c8855a2f9cf2af61a (patch) | |
| tree | acde102bfba4cfe69883ad769f1b6de1aefcb055 /.github/workflows/windows-ci.yml | |
| parent | 97c691162c39c9d592e418f07a1015f4032c2d86 (diff) | |
| download | cru-770d0dbdcdc1e54f66c2ed2c8855a2f9cf2af61a.tar.gz cru-770d0dbdcdc1e54f66c2ed2c8855a2f9cf2af61a.tar.bz2 cru-770d0dbdcdc1e54f66c2ed2c8855a2f9cf2af61a.zip | |
...
Diffstat (limited to '.github/workflows/windows-ci.yml')
| -rw-r--r-- | .github/workflows/windows-ci.yml | 41 |
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 |
