File tree 2 files changed +15
-11
lines changed
2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -2,19 +2,19 @@ name: Build with cmake
2
2
description : Common steps for library build/test/install using cmake
3
3
inputs :
4
4
type :
5
- description : Release, Debug or some other build
5
+ description : CMAKE_BUILD_TYPE ( Release, Debug, etc)
6
6
required : false
7
7
default : Release
8
8
scan :
9
9
description : Cmake command prefix
10
10
required : false
11
11
default : ' '
12
12
cmakeflags :
13
- description : cmake flags
13
+ description : CMAKE_CXX_FLAGS
14
14
required : false
15
15
default : ' '
16
16
cxxflags :
17
- description : CXX flags
17
+ description : CXX_FLAGS
18
18
required : false
19
19
default : ' '
20
20
runs :
Original file line number Diff line number Diff line change 9
9
jobs :
10
10
windows_build :
11
11
runs-on : windows-2019
12
+ env :
13
+ cmake_generator_x86 : ' -G "Visual Studio 16 2019" -A Win32'
14
+ cmake_generator_x64 : ' -G "Visual Studio 16 2019" -A x64'
12
15
strategy :
13
16
matrix :
14
17
platform :
@@ -21,10 +24,11 @@ jobs:
21
24
- ON
22
25
include :
23
26
- platform : x86
24
- cmake_generator : ' -G "Visual Studio 16 2019" -A Win32 '
27
+ cmake_generator : $cmake_generator_x86
25
28
- platform : x64
26
- cmake_generator : ' -G "Visual Studio 16 2019" -A x64 '
29
+ cmake_generator : $cmake_generator_x64
27
30
- platform : x64
31
+ cmake_generator : $cmake_generator_x64
28
32
config : Release
29
33
fmt-header-only : OFF
30
34
@@ -52,11 +56,11 @@ jobs:
52
56
run : |
53
57
mkdir build
54
58
cd build
55
- cmake \
56
- -DCMAKE_CXX_FLAGS="-DCRT_SECURE_NO_WARNINGS" \
57
- -DLFP_FMT_HEADER_ONLY=${{ matrix.fmt-header-only }} \
58
- -DCMAKE_BUILD_TYPE=${{ matrix.config }} \
59
- ${{ matrix.cmake_generator }} \
60
- ..
59
+ cmake \
60
+ -DCMAKE_CXX_FLAGS="-DCRT_SECURE_NO_WARNINGS" \
61
+ -DLFP_FMT_HEADER_ONLY=${{ matrix.fmt-header-only }} \
62
+ -DCMAKE_BUILD_TYPE=${{ matrix.config }} \
63
+ ${{ matrix.cmake_generator }} \
64
+ ..
61
65
cmake --build . --config ${{ matrix.config }} --target install
62
66
ctest -C ${{ matrix.config }} --verbose
You can’t perform that action at this time.
0 commit comments