From a4e8d7302d8d22c487c65207af8e646795a4c302 Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Fri, 5 Feb 2021 22:06:05 -0800 Subject: [PATCH] Maybe this will work? --- .github/workflows/cmake.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 4d98ca0..cbb004f 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -12,7 +12,11 @@ jobs: # well on Windows or Mac. You can convert this to a matrix build if you need # cross-platform coverage. # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest, ubuntu-18.04, windows-latest] + compiler: [gcc-8, clang] steps: - uses: actions/checkout@v2 @@ -39,6 +43,8 @@ jobs: - name: Build working-directory: ${{github.workspace}}/build shell: bash + env: + CC: ${{ matrix.compiler }} # Execute the build. You can specify a specific target with "--target " run: cmake --build . --config $BUILD_TYPE