aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: 599e59fcb6055733bad3119e3e95eebb70c0eab1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CI

on:
  push:
    branches: [master]
    paths-ignore:
      - "docs/**"
      - "drafts/**"
      - "**/README.md"
  pull_request:
    branches: [master]
    paths-ignore:
      - "docs/**"
      - "drafts/**"
      - "**/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