aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/windows.yml
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-01-27 16:58:54 -0800
committerGarrett D'Amore <garrett@damore.org>2024-01-27 17:19:42 -0800
commit41626c984ffd7e1a8d607fd0bdc1e021214cbbde (patch)
tree39dc9f5a1b2b2d569ee26ca8c4d865c59938e6aa /.github/workflows/windows.yml
parent348898eaf65f488d0d74fb658a5913c8206294de (diff)
downloadnng-41626c984ffd7e1a8d607fd0bdc1e021214cbbde.tar.gz
nng-41626c984ffd7e1a8d607fd0bdc1e021214cbbde.tar.bz2
nng-41626c984ffd7e1a8d607fd0bdc1e021214cbbde.zip
github: use vcpkg to install and use mbedtls
Diffstat (limited to '.github/workflows/windows.yml')
-rw-r--r--.github/workflows/windows.yml31
1 files changed, 19 insertions, 12 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 1badf1dc..0b309159 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -1,22 +1,29 @@
name: windows
on: [push, pull_request]
jobs:
-
build:
name: build
- runs-on: [ windows-latest ]
+ runs-on: [windows-latest]
steps:
- - name: Check out code
- uses: actions/checkout@v1
+ - name: Check out code
+ uses: actions/checkout@v1
- - name: Configure
- run: cmake -B build
+ - name: vcpkg build
+ id: vcpkg
+ uses: johnwason/vcpkg-action@v6
+ with:
+ pkgs: mbedtls
+ triplet: x64-windows-release
+ token: ${{ github.token }}
+ github-binarycache: true
- - name: Build
- run: cmake --build build
+ - name: Configure
+ run: cmake ${{ steps.vcpkg.outputs.vcpkg-cmake-config }} -B build
- - name: Test
- run: |
- cd build
- ctest -C Debug --output-on-failure
+ - name: Build
+ run: cmake --build build
+ - name: Test
+ run: |
+ cd build
+ ctest -C Debug --output-on-failure