File tree 2 files changed +29
-1
lines changed
2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 6
6
branches : [ master ]
7
7
workflow_dispatch :
8
8
jobs :
9
- build :
9
+ cmake- build :
10
10
strategy :
11
11
matrix :
12
12
os : [ubuntu-latest, windows-latest, macos-latest]
39
39
- name : Test
40
40
shell : bash
41
41
run : cd build && ctest --output-on-failure
42
+
43
+ bazel-build :
44
+ strategy :
45
+ matrix :
46
+ os : [ubuntu-latest, windows-latest, macos-latest]
47
+ runs-on : ${{ matrix.os }}
48
+ steps :
49
+ - uses : actions/checkout@v2
50
+
51
+ - name : Build
52
+ shell : bash
53
+ run : |
54
+ cd "${{ github.workspace }}"
55
+ bazel build :all
56
+
57
+ - name : Test
58
+ shell : bash
59
+ run : |
60
+ cd "${{ github.workspace }}"
61
+ bazel test test
62
+
Original file line number Diff line number Diff line change
1
+ yaml_cpp_defines = select ({
2
+ # On Windows, ensure static linking is used.
3
+ "@platforms//os:windows" : ["YAML_CPP_STATIC_DEFINE" , "YAML_CPP_NO_CONTRIB" ],
4
+ "//conditions:default" : [],
5
+ })
6
+
1
7
cc_library (
2
8
name = "yaml-cpp_internal" ,
3
9
visibility = ["//:__subpackages__" ],
@@ -11,4 +17,5 @@ cc_library(
11
17
includes = ["include" ],
12
18
hdrs = glob (["include/**/*.h" ]),
13
19
srcs = glob (["src/**/*.cpp" , "src/**/*.h" ]),
20
+ defines = yaml_cpp_defines ,
14
21
)
You can’t perform that action at this time.
0 commit comments