|
12 | 12 |
|
13 | 13 | jobs: |
14 | 14 | build: |
| 15 | +strategy: |
| 16 | +os: |
| 17 | + -ubuntu-18.04 |
| 18 | + -windows-latest |
| 19 | + -macos-latest |
15 | 20 | # The CMake configure and build commands are platform agnostic and should work equally |
16 | 21 | # well on Windows or Mac. You can convert this to a matrix build if you need |
17 | 22 | # cross-platform coverage. |
18 | 23 | # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix |
19 | | -runs-on:ubuntu-latest |
| 24 | +runs-on:${{matrix.os}} |
20 | 25 |
|
21 | 26 | steps: |
22 | 27 | -uses:actions/checkout@v2 |
23 | 28 |
|
24 | 29 | -name:Configure CMake |
25 | 30 | # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. |
26 | 31 | # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type |
27 | | -run:cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DJPP_TEST_REPORT_JUNIT=ON |
| 32 | +run:cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DJPP_TEST_REPORT_JUNIT=ON -C ${{github.workspace}}/travis/cmake.conf --warn-uninitialized |
28 | 33 |
|
29 | 34 | -name:Build |
30 | 35 | # Build your program with the given configuration |
|
36 | 41 | # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail |
37 | 42 | run:ctest -C ${{env.BUILD_TYPE}} --output-on-failure |
38 | 43 |
|
| 44 | + -name:Publish Test Report |
| 45 | +uses:mikepenz/action-junit-report@v2 |
| 46 | +with: |
| 47 | +report_paths:'build/**/*.report.xml' |
| 48 | + |