From f9a3380184b505eeae0c975ee6a7b33f1159881e Mon Sep 17 00:00:00 2001 From: Austin Shalit Date: Sun, 20 Sep 2020 18:15:27 -0400 Subject: [PATCH] [build] Add macOS CMake CI (#2711) --- .github/workflows/ci.yml | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6575e99459..dacb2af56e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,19 +66,38 @@ jobs: path: build/allOutputs build-cmake: - name: "Build - CMake" - runs-on: ubuntu-latest - container: wpilib/roborio-cross-ubuntu:2020-18.04 + strategy: + fail-fast: false + matrix: + include: + - os: ubuntu-latest + name: Linux + container: wpilib/roborio-cross-ubuntu:2020-18.04 + flags: "" + - os: macos-latest + name: macOS + container: "" + flags: "-DWITHOUT_JAVA=ON" + name: "Build - CMake ${{ matrix.name }}" + runs-on: ${{ matrix.os }} + container: ${{ matrix.container }} steps: - uses: actions/checkout@v2 + - name: Install Dependencies + run: | + if [ "$RUNNER_OS" == "macOS" ]; then + brew install opencv + fi - name: configure - run: mkdir build && cd build && cmake -DWITHOUT_ALLWPILIB=OFF -DWITH_TESTS=ON .. + run: mkdir build && cd build && cmake -DWITHOUT_ALLWPILIB=OFF -DWITH_TESTS=ON ${{ matrix.flags }} .. - name: build - run: cd build && make -j3 + working-directory: build + run: make -j3 - name: test - run: cd build && make test + working-directory: build + run: make test - build-cmake-windows: + build-cmake-vcpkg: name: "Build - CMake Windows" runs-on: windows-latest steps: