Skip to content

Commit

Permalink
init github actions for mac/linux/windows
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan committed Oct 31, 2021
1 parent 5f9e4c0 commit 7f3f1a4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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

- shell: bash
run: |
mkdir -p build && cd build
cmake ..
cmake --build . --parallel 4
ctest --output-on-failure
- shell: bash
run: |
rm -rf build && mkdir -p build && cd build
cmake .. -DYAML_BUILD_SHARED_LIBS=ON
cmake --build . --parallel 4
ctest --output-on-failure

0 comments on commit 7f3f1a4

Please sign in to comment.