Add message type as FMI parameter #9
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: Build | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
name: Build FMU | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Model | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Cache Dependencies | |
id: cache-depends | |
uses: actions/cache@v2 | |
with: | |
path: protobuf-21.12 | |
key: ${{ runner.os }}-v1-depends | |
- name: Download ProtoBuf | |
if: steps.cache-depends.outputs.cache-hit != 'true' | |
run: curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protobuf-all-21.12.tar.gz && tar xzvf protobuf-all-21.12.tar.gz | |
- name: Build ProtoBuf | |
if: steps.cache-depends.outputs.cache-hit != 'true' | |
working-directory: protobuf-21.12 | |
run: ./configure DIST_LANG=cpp --prefix=/usr && make | |
- name: Install ProtoBuf | |
working-directory: protobuf-21.12 | |
run: sudo make install && sudo ldconfig | |
- name: Prepare C++ Build | |
run: mkdir build | |
- name: Configure CMake | |
working-directory: build | |
run: cmake -DCMAKE_PREFIX_PATH:PATH=${DEPS_DIR}/protobuf/install .. | |
- name: Build C++ | |
working-directory: build | |
run: cmake --build . | |