Ci fix #94
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
unitTests: | |
strategy: | |
matrix: | |
name: [ubuntu-gcc, windows-VS] | |
include: | |
- name: ubuntu-gcc | |
os: ubuntu-latest | |
compiler_opt: "-DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++" | |
build_system: '-G Ninja' | |
- name: windows-VS | |
os: windows-latest | |
compiler_opt: "" | |
build_system: "" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2.0.0 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: show HEAD | |
run: git rev-parse HEAD | |
- name: Install Ninja | |
if: matrix.build_system == '-G Ninja' | |
uses: seanmiddleditch/gha-setup-ninja@master | |
- name: CMake configure | |
run: cmake -B./build -DCMAKE_INSTALL_PREFIX:STRING=./artifacts/ -D BUILD_MT_RRT_SAMPLES=ON -DBUILD_MT_RRT_TESTS=ON -DCMAKE_CONFIGURATION_TYPES="Release" -DCMAKE_BUILD_TYPE:STRING=Release ${{ matrix.build_system }} ${{ matrix.compiler_opt }} | |
- name: Build | |
run: cmake --build ./build --config Release | |
- name: Install | |
run: cmake --install ./build --config Release | |
- name: Tests-show | |
run: python script/RunTests.py --folder ./artifacts/bin --list | |
- name: Tests | |
run: python script/RunTests.py --folder ./artifacts/bin | |
- uses: actions/upload-artifact@v2 | |
with: | |
path: artifacts | |
name: ${{ matrix.name }} |