-
Notifications
You must be signed in to change notification settings - Fork 14
43 lines (38 loc) · 1.19 KB
/
windows-x64-vs2017.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
42
43
name: windows-x64-vs2017
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
windows-vs2015:
runs-on: windows-2016
steps:
- uses: actions/checkout@v2
# static library
- name: build-static
run: |
mkdir build-static
cd build-static
cmake -T v141,host=x64 -A x64 -DBUILD_STATIC=ON -DBUILD_SHARED=OFF ..
cmake --build . --config Release -j
- name: test-static
run: cd build-static; ctest -C Release --output-on-failure
# shared library
- name: build-shared
run: |
mkdir build-shared
cd build-shared
cmake -T v141,host=x64 -A x64 -DBUILD_STATIC=OFF -DBUILD_SHARED=ON ..
cmake --build . --config Release -j
- name: test-shared
run: cd build-shared; ctest -C Release --output-on-failure
# shared library no asm
- name: build-shared-no-asm
run: |
mkdir build-shared-no-asm
cd build-shared-no-asm
cmake -T v141,host=x64 -A x64 -DBUILD_STATIC=OFF -DBUILD_SHARED=ON -DUSE_ASM=OFF ..
cmake --build . --config Release -j
- name: test-shared-no-asm
run: cd build-shared-no-asm; ctest -C Release --output-on-failure