Skip to content

Commit 4564d9a

Browse files
authored
github actions for mac/linux/windows (#1056)
1 parent 2f89975 commit 4564d9a

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

.github/workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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

include/yaml-cpp/node/detail/node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)