Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

9 update ci pipeline to use osi validation instead of osi field checker #10

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:

steps:
- name: Checkout Model
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

- name: Cache Protobuf
id: cache-protobuf
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: protobuf-21.12
key: ${{ runner.os }}-protobuf
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:

- name: Cache Model FMU
id: cache-model-fmu
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/model_fmu
key: ${{ runner.os }}-model-fmu-${{ github.sha }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_esmini.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- name: Cache esmini FMU
id: cache-esmini-fmu
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/esmini_fmu
key: ${{ runner.os }}-esmini-fmu
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_openmcx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- name: Cache OpenMCx
id: cache-openmcx
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: openmcx
key: ${{ runner.os }}-openmcx
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/build_osi-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build osi-validation

on:
workflow_call:

jobs:
build_esmini:
name: Build osi-validation
runs-on: ubuntu-latest

steps:
- name: Cache osi-validation
id: cache-osi-validation
uses: actions/cache@v4
with:
path: /tmp/osi-validation
key: ${{ runner.os }}-osi-validation

- name: Get osi-validation
if: steps.cache-osi-validation.outputs.cache-hit != 'true'
working-directory: /tmp
env:
GIT_CLONE_PROTECTION_ACTIVE: false
run: git clone https://github.com/OpenSimulationInterface/osi-validation.git

- name: Update Submodules
if: steps.cache-osi-validation.outputs.cache-hit != 'true'
working-directory: /tmp/osi-validation
run: git submodule update --init

- name: Build osi-validation
if: steps.cache-osi-validation.outputs.cache-hit != 'true'
working-directory: /tmp/osi-validation
run: |
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements_develop.txt
cd open-simulation-interface && python3 -m pip install . && cd ..
python3 -m pip install -r requirements.txt
python3 rules2yml.py -d rules
python3 -m pip install .

- name: Generate default rules
if: steps.cache-osi-validation.outputs.cache-hit != 'true'
working-directory: /tmp/osi-validation
run: |
source .venv/bin/activate
python3 rules2yml.py

- name: Add Commit ID to Cache
if: steps.cache-osi-validation.outputs.cache-hit != 'true'
working-directory: /tmp/osi-validation
run: |
git rev-parse --short HEAD > commit-id.txt
79 changes: 0 additions & 79 deletions .github/workflows/build_osi_field_checker.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/build_tracefile_player.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- name: Cache Protobuf
id: cache-protobuf
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: protobuf-21.12
key: ${{ runner.os }}-protobuf
Expand All @@ -31,7 +31,7 @@ jobs:

- name: Cache Tracefile Player FMU
id: cache-tracefile-player-fmu
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/tracefile_player_fmu
key: ${{ runner.os }}-tracefile-player-fmu
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_tracefile_writer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- name: Cache Protobuf
id: cache-protobuf
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: protobuf-21.12
key: ${{ runner.os }}-protobuf
Expand All @@ -31,7 +31,7 @@ jobs:

- name: Cache Tracefile Writer FMU
id: cache-tracefile-writer-fmu
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/tracefile_writer_fmu
key: ${{ runner.os }}-tracefile-writer-fmu
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cl0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: enarx/spdx@master
with:
licenses: Apache-2.0 BSD-3-Clause BSD-2-Clause MIT MPL-2.0
Loading
Loading