-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
init github actions for mac/linux/windows
- Loading branch information
1 parent
5f9e4c0
commit c1a6ae3
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
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 | ||
- name: Test shared | ||
shell: bash | ||
run: cd build && ctest --output-on-failure |