Skip to content

Merge branch 'master' of github.com:Vico-platform/fmu4cpp #61

Merge branch 'master' of github.com:Vico-platform/fmu4cpp

Merge branch 'master' of github.com:Vico-platform/fmu4cpp #61

Workflow file for this run

name: Build
on: [push, workflow_dispatch]
jobs:
build-on-linux:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Configure and build
run: |
cmake . -B build -DFMU4CPP_BUILD_TESTS=ON
cmake --build build
- name: Download and run FMUchecker
run: |
wget https://github.com/modelica-tools/FMUComplianceChecker/releases/download/2.0.4/FMUChecker-2.0.4-linux64.zip
7z x FMUChecker-2.0.4-linux64.zip && cd FMUChecker-2.0.4-linux64
./fmuCheck.linux64 ../build/model.fmu
- name: Test
run: |
cd build/export/tests
ctest --output-on-failure
build-on-windows:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
steps:
- uses: actions/checkout@v2
- name: Configure and build
run: |
cmake . -B build -DFMU4CPP_BUILD_TESTS=ON -A x64
cmake --build build --config Release
- name: Download and run FMUchecker
run: |
curl --output FMUChecker-2.0.4-win64.zip --url https://github.com/modelica-tools/FMUComplianceChecker/releases/download/2.0.4/FMUChecker-2.0.4-win64.zip -L
7z x FMUChecker-2.0.4-win64.zip && cd FMUChecker-2.0.4-win64
./fmuCheck.win64.exe ../build/model.fmu
shell: bash
- name: Test
run: |
cd build/export/tests
ctest -C Release --output-on-failure