mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-08 20:31:17 +00:00
github actions for mac/linux/windows (#1056)
This commit is contained in:
40
.github/workflows/build.yml
vendored
Normal file
40
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
name: Github PR
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
workflow_dispatch:
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Build static
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
mkdir -p build && cd build
|
||||||
|
cmake ..
|
||||||
|
cmake --build . --parallel 4
|
||||||
|
|
||||||
|
- name: Test static
|
||||||
|
shell: bash
|
||||||
|
run: cd build && ctest --output-on-failure
|
||||||
|
|
||||||
|
- name: Build shared
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
rm -rf build && mkdir -p build && cd build
|
||||||
|
cmake .. -DYAML_BUILD_SHARED_LIBS=ON
|
||||||
|
cmake --build . --parallel 4
|
||||||
|
|
||||||
|
# tests are failing for unknown reasons
|
||||||
|
- if: matrix.os == 'ubuntu-latest'
|
||||||
|
name: Test shared
|
||||||
|
shell: bash
|
||||||
|
run: cd build && ctest --output-on-failure
|
||||||
|
# test all ASAP
|
@@ -169,7 +169,7 @@ class node {
|
|||||||
using nodes = std::set<node*, less>;
|
using nodes = std::set<node*, less>;
|
||||||
nodes m_dependencies;
|
nodes m_dependencies;
|
||||||
size_t m_index;
|
size_t m_index;
|
||||||
static std::atomic<size_t> m_amount;
|
static YAML_CPP_API std::atomic<size_t> m_amount;
|
||||||
};
|
};
|
||||||
} // namespace detail
|
} // namespace detail
|
||||||
} // namespace YAML
|
} // namespace YAML
|
||||||
|
Reference in New Issue
Block a user