Skip to content

Add custom name to temporary trace file name to resolve ambiguity #16

Add custom name to temporary trace file name to resolve ambiguity

Add custom name to temporary trace file name to resolve ambiguity #16

Workflow file for this run

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 .