File tree Expand file tree Collapse file tree 2 files changed +53
-2
lines changed Expand file tree Collapse file tree 2 files changed +53
-2
lines changed Original file line number Diff line number Diff line change 11
11
BUILD_TYPE : Release
12
12
13
13
jobs :
14
- build :
14
+ windows :
15
+ name : ' windows/msvc - ${{matrix.link}}'
16
+ runs-on : windows-latest
17
+ strategy :
18
+ fail-fast : false
19
+ matrix :
20
+ link : [ 'STATIC', 'SHARED' ]
21
+ steps :
22
+ - name : Checkout Trantor source code
23
+ uses : actions/checkout@v2
24
+ with :
25
+ submodules : false
26
+
27
+ - name : Install dependencies
28
+ run : |
29
+ pip install conan
30
+
31
+ - name : Create build directory
32
+ run : |
33
+ mkdir build
34
+
35
+ - name : Install conan packages
36
+ shell : pwsh
37
+ working-directory : ./build
38
+ run : |
39
+ conan install .. -s compiler="Visual Studio" -s compiler.version=16 -sbuild_type=Debug -g cmake_paths
40
+
41
+ - name : Create Build Environment & Configure Cmake
42
+ shell : bash
43
+ working-directory : ./build
44
+ run : |
45
+ [[ ${{ matrix.link }} == "SHARED" ]] && shared="ON" || shared="OFF"
46
+ cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=on -DBUILD_TRANTOR_SHARED=$shared -DCMAKE_TOOLCHAIN_FILE="conan_paths.cmake" -DCMAKE_INSTALL_PREFIX=../install
47
+
48
+ - name : Build
49
+ working-directory : ${{env.GITHUB_WORKSPACE}}
50
+ shell : bash
51
+ run : |
52
+ cd build
53
+ cmake --build . --target install --parallel
54
+ unix :
15
55
name : ${{matrix.buildname}}
16
56
runs-on : ${{matrix.os}}
17
57
strategy :
92
132
if : matrix.os == 'ubuntu-20.04'
93
133
working-directory : ${{env.GITHUB_WORKSPACE}}
94
134
shell : bash
95
- run : ./format.sh && git diff --exit-code
135
+ run : ./format.sh && git diff --exit-code
Original file line number Diff line number Diff line change
1
+ [requires]
2
+ gtest/1.10.0
3
+ openssl/1.1.1j
4
+ #c-ares/1.17.1
5
+
6
+ [generators]
7
+ cmake_paths
8
+
9
+ [options]
10
+
11
+ [imports]
You can’t perform that action at this time.
0 commit comments