File tree Expand file tree Collapse file tree 2 files changed +41
-1
lines changed
include/yaml-cpp/node/detail Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Github PR
2+ on :
3+ push :
4+ branches : [ master ]
5+ pull_request :
6+ branches : [ master ]
7+ workflow_dispatch :
8+ jobs :
9+ build :
10+ strategy :
11+ matrix :
12+ os : [ubuntu-latest, windows-latest, macos-latest]
13+ runs-on : ${{ matrix.os }}
14+ steps :
15+ - uses : actions/checkout@v2
16+
17+ - name : Build static
18+ shell : bash
19+ run : |
20+ mkdir -p build && cd build
21+ cmake ..
22+ cmake --build . --parallel 4
23+
24+ - name : Test static
25+ shell : bash
26+ run : cd build && ctest --output-on-failure
27+
28+ - name : Build shared
29+ shell : bash
30+ run : |
31+ rm -rf build && mkdir -p build && cd build
32+ cmake .. -DYAML_BUILD_SHARED_LIBS=ON
33+ cmake --build . --parallel 4
34+
35+ # tests are failing for unknown reasons
36+ - if : matrix.os == 'ubuntu-latest'
37+ name : Test shared
38+ shell : bash
39+ run : cd build && ctest --output-on-failure
40+ # test all ASAP
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ class node {
169169 using nodes = std::set<node*, less>;
170170 nodes m_dependencies;
171171 size_t m_index;
172- static std::atomic<size_t > m_amount;
172+ static YAML_CPP_API std::atomic<size_t > m_amount;
173173};
174174} // namespace detail
175175} // namespace YAML
You can’t perform that action at this time.
0 commit comments