Skip to content

Commit

Permalink
Run tests only on Ubuntu and Mac
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Apr 27, 2020
1 parent 845491d commit 97994c7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ jobs:
name: "Ubuntu Latest GCC", artifact: "Linux.tar.gz",
os: ubuntu-latest,
cc: "gcc", cxx: "g++",
cmake_flags: "-G Ninja",
cmake_flags: "-G Ninja -DENABLE_TESTING=ON ",
cpack: "",
}
- {
name: "macOS Latest Clang", artifact: "macOS.dmg",
os: macos-latest,
cc: "clang", cxx: "clang++",
cmake_flags: "-G Ninja",
cmake_flags: "-G Ninja -DENABLE_TESTING=ON ",
cpack_flags: "-G DragNDrop",
}
- {
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
run: |
mkdir "${{ runner.workspace }}/build"
cd "${{ runner.workspace }}/build"
CC=${{matrix.config.cc}} CXX=${{matrix.config.cxx}} cmake $GITHUB_WORKSPACE -DENABLE_TESTING=ON -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ${{matrix.config.cmake_flags}}
CC=${{matrix.config.cc}} CXX=${{matrix.config.cxx}} cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ${{matrix.config.cmake_flags}}
shell: bash

- name: Build
Expand Down Expand Up @@ -155,6 +155,7 @@ jobs:
working-directory: ${{ runner.workspace }}

- name: Run tests
if: runner.os != 'Windows'
shell: cmake -P {0}
run: |
include(ProcessorCount)
Expand Down

0 comments on commit 97994c7

Please sign in to comment.