Merge branch 'NTNU-IHB:master' into master #11
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: FMI4cpp CI | |
on: [ push, workflow_dispatch ] | |
jobs: | |
conan-on-linux: | |
runs-on: ${{ matrix.os }} | |
env: | |
CC: gcc-${{ matrix.compiler_version }} | |
CXX: g++-${{ matrix.compiler_version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04] | |
compiler_version: [9] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install prerequisites | |
run: | | |
sudo pip3 install --upgrade setuptools pip | |
sudo pip3 install conan | |
- name: Configure and build | |
run: | | |
cmake . -B build -DFMI4CPP_USING_CONAN=TRUE -DFMI4CPP_BUILD_TESTS=ON -DFMI4CPP_BUILD_EXAMPLES=ON | |
cmake --build build | |
- name: Test | |
run: | | |
cd build/tests && ctest | |
conan-on-windows: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-2019] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install prerequisites | |
run: | | |
pip3 install conan | |
shell: bash | |
- name: Configure and build | |
run: | | |
cmake . -B build -A x64 -DFMI4CPP_USING_CONAN=TRUE -DFMI4CPP_BUILD_TESTS=ON -DFMI4CPP_BUILD_EXAMPLES=ON | |
cmake --build build --config Release | |
shell: bash | |
- name: Test | |
run: | | |
cd build/tests && ctest -C Release | |
shell: bash | |
cmake-on-linux: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install prerequisites | |
run: | | |
sudo apt-get install -y --no-install-recommends \ | |
gcc g++ cmake libzip-dev libpugixml-dev | |
- name: Configure and build | |
run: | | |
cmake . -B build -DFMI4CPP_BUILD_TESTS=ON -DFMI4CPP_BUILD_EXAMPLES=ON | |
cmake --build build | |
- name: Test | |
run: | | |
cd build/tests && ctest |