Replace printf with readMessage API function #195
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: ghactions-ci-build | |
on: [pull_request] | |
jobs: | |
cmake-mingw: | |
timeout-minutes: 5 | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Create build dir | |
shell: cmd | |
run: mkdir fmi4c-build | |
- name: Configure | |
working-directory: fmi4c-build | |
shell: cmd | |
run: cmake -DFMI4C_BUILD_TEST=ON -DCMAKE_BUILD_TYPE=Release -G"MinGW Makefiles" .. | |
- name: Build | |
working-directory: fmi4c-build | |
shell: cmd | |
run: cmake --build . --config Release --parallel 4 | |
- name: Test | |
working-directory: fmi4c-build | |
shell: cmd | |
run: ctest -C Release --output-on-failure --parallel 4 | |
- name: PythonTest | |
working-directory: fmi4c-build/test | |
run: python pytest.py | |
cmake-msvc2019: | |
timeout-minutes: 5 | |
runs-on: windows-2019 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Create build dir | |
shell: cmd | |
run: mkdir fmi4c-build | |
- name: Configure | |
working-directory: fmi4c-build | |
shell: cmd | |
run: cmake -DFMI4C_BUILD_TEST=ON -DCMAKE_BUILD_TYPE=Release -G"Visual Studio 16 2019" .. | |
- name: Build | |
working-directory: fmi4c-build | |
shell: cmd | |
run: cmake --build . --config Release --parallel 4 | |
- name: Test | |
working-directory: fmi4c-build | |
shell: cmd | |
run: ctest -C Release --output-on-failure --parallel 4 | |
cmake-ubuntu: | |
timeout-minutes: 5 | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Create build dir | |
shell: bash | |
run: mkdir fmi4c-build | |
- name: Configure | |
working-directory: fmi4c-build | |
shell: bash | |
run: cmake -D CMAKE_CXX_FLAGS="-fsanitize=address" -D CMAKE_C_FLAGS="-fsanitize=address" -DFMI4C_BUILD_TEST=ON -DCMAKE_BUILD_TYPE=Release .. | |
- name: Build | |
working-directory: fmi4c-build | |
shell: bash | |
run: cmake --build . --config Release --parallel 4 | |
- name: Test | |
working-directory: fmi4c-build | |
shell: bash | |
run: ctest --output-on-failure --parallel 4 | |
cmake-ubuntu-python: | |
timeout-minutes: 5 | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Create build dir | |
shell: bash | |
run: mkdir fmi4c-build | |
- name: Configure | |
working-directory: fmi4c-build | |
shell: bash | |
run: cmake -DFMI4C_BUILD_TEST=ON -DCMAKE_BUILD_TYPE=Release .. | |
- name: Build | |
working-directory: fmi4c-build | |
shell: bash | |
run: cmake --build . --config Release --parallel 4 | |
- name: Test | |
working-directory: fmi4c-build/test | |
run: python pytest.py |