From c2ad0e62bc3e7da7f772db138b70fa7e05e8966f Mon Sep 17 00:00:00 2001 From: Hannes Steffenhagen Date: Fri, 31 Jul 2020 16:58:32 +0100 Subject: [PATCH] Add github action to do CI checks against macOS --- .github/workflows/pull-request-checks.yaml | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pull-request-checks.yaml diff --git a/.github/workflows/pull-request-checks.yaml b/.github/workflows/pull-request-checks.yaml new file mode 100644 index 00000000000..d1510641cb0 --- /dev/null +++ b/.github/workflows/pull-request-checks.yaml @@ -0,0 +1,23 @@ +name: pull-request-checks +on: + pull_request: + branches: [ develop ] + +jobs: + check-macos-10_15-cmake-clang: + runs-on: macos-10.15 + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - name: Fetch dependencies + run: brew install cmake ninja maven flex bison + - name: Configure using CMake + run: | + mkdir build + cd build + cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ + - name: Build with Ninja + run: cd build; ninja + - name: Run CTest + run: cd build; ctest -V -L CORE .