From 5c77b675b5957d33de2e6c83481c55e9bbc32902 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 12 May 2020 22:16:14 -0700 Subject: Add GitHub actions CI. --- .github/workflows/ci.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/ci.yml 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 + -- cgit v1.2.3