fix #170
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: | |
cmake-on-linux: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install prerequisites | |
run: | | |
sudo apt-get update && sudo apt-get install -y --no-install-recommends \ | |
gcc g++ cmake unzip libpugixml-dev | |
- name: Configure and build | |
run: | | |
cmake . -B build -DFMI4CPP_BUILD_TESTS=ON -DFMI4CPP_USE_EXTERNAL_PUGIXML=ON -DFMI4CPP_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Release | |
cmake --build build | |
- name: Test | |
run: | | |
cd build/tests && ctest --output-on-failure | |
vcpkg-on-linux: | |
runs-on: ${{ matrix.os }} | |
env: | |
CC: gcc-${{ matrix.compiler_version }} | |
CXX: g++-${{ matrix.compiler_version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04] | |
compiler_version: [11] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure and build | |
run: | | |
cmake . -B build -DFMI4CPP_BUILD_TESTS=ON -DFMI4CPP_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Release | |
cmake --build build | |
- name: Test | |
run: | | |
cd build/tests && ctest --output-on-failure | |
vcpkg-on-windows: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-2019, windows-2022] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure and build | |
run: | | |
cmake . -B build -A x64 -DFMI4CPP_BUILD_TESTS=ON -DFMI4CPP_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Release | |
cmake --build build --config Release | |
shell: bash | |
- name: Test | |
run: | | |
cd build/tests && ctest -C Release --output-on-failure | |
shell: pwsh |