aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/windows.yml
blob: 25acd9d2d7faa3da97884e12fce9257571be702d (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
name: windows
on: [push, pull_request]
jobs:
  build:
    name: build
    runs-on: [windows-latest]
    steps:
      - name: Check out code
        uses: actions/checkout@v1

      - name: vcpkg build
        id: vcpkg
        uses: johnwason/vcpkg-action@v6
        with:
          pkgs: mbedtls
          triplet: x64-windows-release
          token: ${{ github.token }}
          github-binarycache: true

      - name: Configure
        run: cmake ${{ steps.vcpkg.outputs.vcpkg-cmake-config }} -G Ninja -D NNG_ENABLE_TLS=ON -B build

      - name: Build
        run: cmake --build build

      - name: Test
        run: |
          cd build
          ctest -C Debug --output-on-failure