-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (33 loc) · 1.25 KB
/
windows.yml
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
name: Windows
on:
push:
branches:
- master
pull_request:
jobs:
ci_windows_build:
runs-on: windows-latest
strategy:
matrix:
buildmode: [Debug, Release]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
uses: crazy-max/ghaction-chocolatey@v1
with:
args: install curl openssl
- name: Add cURL directory in the path
run: |
echo "C:\ProgramData\chocolatey\lib\curl\tools\curl-7.77.0-win64-mingw\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "C:\ProgramData\chocolatey\lib\curl\tools\curl-7.77.0-win64-mingw\lib" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake
run: cmake -S . -B build -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=${{matrix.buildmode}}
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . --config ${{matrix.buildmode}}
- name: Tests
working-directory: ${{github.workspace}}/build
run: ctest -C ${{matrix.buildmode}} -j 10 --output-on-failure