Skip to content

Commit

Permalink
github: use vcpkg to install and use mbedtls
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Jan 28, 2024
1 parent 348898e commit 0753db8
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
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
manifest-dir: ${{ github.workspace }} # Set to directory containing vcpkg.json
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

0 comments on commit 0753db8

Please sign in to comment.