forked from ebu/libadm
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (30 loc) · 880 Bytes
/
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
name: Windows
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
shared: [BUILD_SHARED_LIBS=True, BUILD_SHARED_LIBS=False]
steps:
- uses: actions/checkout@v1
- name: Install dependencies (chocolatey)
run: choco install ninja
- uses: ilammy/msvc-dev-cmd@v1
- name: set boost version
run: echo "::set-env name=BOOST_ROOT::$env:BOOST_ROOT_1_69_0"
- name: Configure
run: |
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_CXX_COMPILER="cl.exe" -DCMAKE_BUILD_TYPE=Release -D${{ matrix.shared }}
- name: Build
run: |
cd build
cmake --build .
- name: Add library directory to PATH for Tests
run: echo "::add-path::${{ github.workspace }}\build\src"
- name: Test
run: |
cd build
ctest --output-on-failure