diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-05-12 22:16:14 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-05-12 22:16:14 -0700 |
commit | 5c77b675b5957d33de2e6c83481c55e9bbc32902 (patch) | |
tree | 64d3ccc9c4c282496f8681b5a753fccc09553ba5 | |
parent | b467630d73974200456f472a58bf9dab5eea1be0 (diff) |
Add GitHub actions CI.
-rw-r--r-- | .github/workflows/ci.yml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..85d9fed --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: CI tests + +on: [push, pull_request] + +jobs: + linux: + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Build and test + env: + CMAKE_OPTIONS: -DCMARK_SHARED=OFF + run: | + mkdir -p build && cd build && cmake $CMAKE_OPTIONS .. + make test + make leakcheck + + macos: + + runs-on: macOS-latest + + steps: + - uses: actions/checkout@v1 + - name: Build and test + env: + CMAKE_OPTIONS: -DCMARK_SHARED=OFF + run: | + mkdir -p build && cd build && cmake $CMAKE_OPTIONS .. + make test + make leakcheck + + windows: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v1 + - name: Build and test + run: | + nmake test + |