Skip to content

split jobs

split jobs #153

Workflow file for this run

Check failure on line 1 in .github/workflows/runTests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/runTests.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: strategy
name: Unit Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
strategy:
matrix:
name: [ubuntu-gcc, ubuntu-clang, windows-VS]
include:
- name: ubuntu-gcc
os: ubuntu-latest
compiler_opt: "-DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -G \"Unix Makefiles\" -DBUILD_EFG_COMPILER_CHECK=ON"
- name: ubuntu-clang
os: ubuntu-latest
compiler_opt: "-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -G \"Unix Makefiles\" -DBUILD_EFG_COMPILER_CHECK=ON"
- name: windows-VS
os: windows-latest
compiler_opt: ""
prepare:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2.0.0
- name: Checkout submodules
run: git submodule update --init --recursive
unitTests:
runs-on: ${{ matrix.os }}
steps:
- name: CMake configure
run: cmake -B./build -DCMAKE_INSTALL_PREFIX:STRING=./artifacts/ -DBUILD_EFG_SAMPLES=OFF -DBUILD_EFG_TESTS=ON -DCMAKE_CONFIGURATION_TYPES="Release" -DCMAKE_BUILD_TYPE:STRING=Release ${{ matrix.compiler_opt }}
- name: Build
run: cmake --build ./build --config Release
- name: Install
run: cmake --install ./build --config Release
- name: Tests
run: ./artifacts/bin/Tests
- uses: actions/upload-artifact@v2
with:
path: artifacts
name: ${{ matrix.name }}