mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00

Add copying of shared library to the output directory with a test binary. [binary] removed using of non unsigned char as argument at 'std::isspace' function that was provokes undefined behavior. [.github/workflows/build.yml] enabled run of test at the 'windows-latest' environment.
41 lines
1013 B
YAML
41 lines
1013 B
YAML
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 != 'macos-latest'
|
|
name: Test shared
|
|
shell: bash
|
|
run: cd build && ctest --output-on-failure
|
|
# test all ASAP
|