summaryrefslogtreecommitdiff
path: root/.github/workflows/windows.yml
blob: 2a031b2bd876ad7cf1419dad4c1a4b0e6182d0ac (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
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
          token: ${{ github.token }}
          github-binarycache: true

      - name: Configure
        # TLS on Windows is not good because vcpkg is *old* mbedTLS 2.28, and we don't pass some newer tests.
        # We should explore testing WolfSSL here instead.
        run: cmake ${{ steps.vcpkg.outputs.vcpkg-cmake-config }} -B build

      - name: Build
        run: cmake --build build

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