-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update pipeline Signed-off-by: ClemensLinnhoff <[email protected]> * Update readme badge Signed-off-by: ClemensLinnhoff <[email protected]> * Fix unit and integration tests Signed-off-by: ClemensLinnhoff <[email protected]> --------- Signed-off-by: ClemensLinnhoff <[email protected]>
- Loading branch information
1 parent
59c8b08
commit 442b574
Showing
23 changed files
with
515 additions
and
72 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Build esmini FMU | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build_esmini: | ||
name: Build esmini FMU | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Cache esmini FMU | ||
id: cache-esmini-fmu | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/esmini_fmu | ||
key: ${{ runner.os }}-esmini-fmu | ||
|
||
- name: Get esmini | ||
if: steps.cache-esmini-fmu.outputs.cache-hit != 'true' | ||
run: git clone https://github.com/esmini/esmini.git | ||
|
||
- name: Checkout dev Branch | ||
if: steps.cache-esmini-fmu.outputs.cache-hit != 'true' | ||
working-directory: esmini | ||
run: git checkout dev | ||
|
||
- name: Update Submodules | ||
if: steps.cache-esmini-fmu.outputs.cache-hit != 'true' | ||
working-directory: esmini | ||
run: git submodule update --init | ||
|
||
- name: Fetch Dependencies | ||
if: steps.cache-esmini-fmu.outputs.cache-hit != 'true' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential gdb ninja-build git pkg-config libgl1-mesa-dev libpthread-stubs0-dev libjpeg-dev libxml2-dev libpng-dev libtiff5-dev libgdal-dev libpoppler-dev libdcmtk-dev libgtk2.0-dev libcairo2-dev libpoppler-glib-dev libxrandr-dev libxinerama-dev curl cmake | ||
- name: Build esmini | ||
if: steps.cache-esmini-fmu.outputs.cache-hit != 'true' | ||
working-directory: esmini | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake .. | ||
cmake --build . --config Release --target install -j4 | ||
- name: Build esmini FMU | ||
if: steps.cache-esmini-fmu.outputs.cache-hit != 'true' | ||
working-directory: esmini/OSMP_FMU | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake .. | ||
cmake --build . --config Release | ||
- name: Create esmini FMU Directory | ||
if: steps.cache-esmini-fmu.outputs.cache-hit != 'true' | ||
run: mkdir /tmp/esmini_fmu | ||
|
||
- name: Copy Commit ID to Cache | ||
if: steps.cache-esmini-fmu.outputs.cache-hit != 'true' | ||
working-directory: esmini | ||
run: | | ||
git rev-parse --short HEAD > commit-id.txt | ||
cp commit-id.txt /tmp/esmini_fmu/commit-id.txt | ||
- name: Copy esmini FMU | ||
if: steps.cache-esmini-fmu.outputs.cache-hit != 'true' | ||
working-directory: esmini/OSMP_FMU/build | ||
run: cp EsminiOsiSource.fmu /tmp/esmini_fmu/EsminiOsiSource.fmu | ||
|
||
- name: Commit ID | ||
working-directory: /tmp/esmini_fmu | ||
run: | | ||
echo "Commit ID: " | ||
echo $(cat commit-id.txt) |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Build Tracefile Writer | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build_tracefile_player: | ||
name: Build Tracefile Writer FMU | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Cache Protobuf | ||
id: cache-protobuf | ||
uses: actions/cache@v3 | ||
with: | ||
path: protobuf-21.12 | ||
key: ${{ runner.os }}-protobuf | ||
|
||
- name: Download ProtoBuf | ||
if: steps.cache-protobuf.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-protobuf.outputs.cache-hit != 'true' | ||
working-directory: protobuf-21.12 | ||
run: ./configure DIST_LANG=cpp --disable-shared CXXFLAGS="-fPIC" && make | ||
|
||
- name: Install ProtoBuf | ||
working-directory: protobuf-21.12 | ||
run: sudo make install && sudo ldconfig | ||
|
||
- name: Cache Tracefile Writer FMU | ||
id: cache-tracefile-writer-fmu | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/tracefile_writer_fmu | ||
key: ${{ runner.os }}-tracefile-writer-fmu | ||
|
||
- name: Get Tracefile Player | ||
if: steps.cache-tracefile-writer-fmu.outputs.cache-hit != 'true' | ||
run: git clone https://github.com/Persival-GmbH/osi-sensordata-trace-file-writer.git | ||
|
||
- name: Prepare C++ Build | ||
if: steps.cache-tracefile-writer-fmu.outputs.cache-hit != 'true' | ||
working-directory: osi-sensordata-trace-file-writer | ||
run: git submodule update --init && mkdir build | ||
|
||
- name: Configure CMake | ||
if: steps.cache-tracefile-writer-fmu.outputs.cache-hit != 'true' | ||
working-directory: osi-sensordata-trace-file-writer/build | ||
run: cmake -DCMAKE_PREFIX_PATH:PATH=${DEPS_DIR}/protobuf/install .. | ||
|
||
- name: Build C++ | ||
if: steps.cache-tracefile-writer-fmu.outputs.cache-hit != 'true' | ||
working-directory: osi-sensordata-trace-file-writer/build | ||
run: cmake --build . | ||
|
||
- name: Create FMU Directory | ||
if: steps.cache-tracefile-writer-fmu.outputs.cache-hit != 'true' | ||
run: mkdir /tmp/tracefile_writer_fmu | ||
|
||
- name: Copy Commit ID to Cache | ||
if: steps.cache-tracefile-writer-fmu.outputs.cache-hit != 'true' | ||
working-directory: osi-sensordata-trace-file-writer | ||
run: | | ||
git rev-parse --short HEAD > commit-id.txt | ||
cp commit-id.txt /tmp/tracefile_writer_fmu/commit-id.txt | ||
- name: Copy Tracefile Writer FMU | ||
if: steps.cache-tracefile-writer-fmu.outputs.cache-hit != 'true' | ||
working-directory: osi-sensordata-trace-file-writer/build | ||
run: cp osi-sensordata-trace-file-writer.fmu /tmp/tracefile_writer_fmu/osi-sensordata-trace-file-writer.fmu | ||
|
||
- name: Commit ID | ||
working-directory: /tmp/tracefile_writer_fmu | ||
run: | | ||
echo "Commit ID: " | ||
echo $(cat commit-id.txt) |
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
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
Oops, something went wrong.