-
-
Notifications
You must be signed in to change notification settings - Fork 47
91 lines (64 loc) · 1.81 KB
/
ci.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: ci
on:
push:
paths:
- "**.cpp"
- "**.hpp"
- "**.cmake"
- "**/CMakeLists.txt"
- ".github/workflows/ci.yml"
pull_request:
paths:
- "**.cpp"
- "**.hpp"
- "**.cmake"
- "**/CMakeLists.txt"
- ".github/workflows/ci.yml"
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: cmake -B build -Dkissnet_BUILD_TESTING:BOOL=on
env:
CXX: g++-9
- run: cmake --build build --parallel
- run: ctest --output-on-failure
working-directory: build
mac_gcc:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: cmake -B build -DOPENSSL_ROOT_DIR=/usr/local/opt/[email protected]/ -Dkissnet_BUILD_TESTING:BOOL=on
env:
CXX: g++
- run: cmake --build build --parallel
- run: ctest --output-on-failure
working-directory: build
mac_clang:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: cmake -B build -DOPENSSL_ROOT_DIR=/usr/local/opt/[email protected]/ -Dkissnet_BUILD_TESTING:BOOL=on
env:
CXX: clang++
- run: cmake --build build --parallel
- run: ctest --output-on-failure
working-directory: build
mingw:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- run: cinst -y ninja openssl.light
- run: cmake -B build -G Ninja -Dkissnet_BUILD_TESTING:BOOL=on
- run: cmake --build build --parallel
- run: ctest --output-on-failure
working-directory: build
msvc:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- run: cmake -B build -Dkissnet_BUILD_TESTING:BOOL=on -DCMAKE_BUILD_TYPE=Debug
- run: cmake --build build --parallel
- run: ctest --output-on-failure -C Debug
working-directory: build