Skip to content

Commit

Permalink
Add metadata for workflow generation.
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Rule (VM/EMT3) <[email protected]>
  • Loading branch information
timrulebosch committed Nov 21, 2024
1 parent 554e2c9 commit 66058ff
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 2 deletions.
105 changes: 105 additions & 0 deletions Metadata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
metadata:
models:
fmimcl:
name: fmimcl
displayName: dse.fmi.mcl
path: dse/fmimcl
workflows:
- generate-fmimcl
- patch-signalgroup
platforms:
- linux-amd64
- linux-x86
- linux-i386
- windows-x64
- windows-x86
channels:
- alias: scalar_vector
- alias: network_vector
fmimodelc:
name: fmimodelc
displayName: dse.fmi.modelc
path: dse/fmimodelc
workflows:
- generate-fmimodelc
platforms:
- linux-amd64
- linux-x86
- linux-i386
- windows-x64
- windows-x86
channels:
- alias: scalar_vector
- alias: network_vector
fmigateway:
name: fmigateway
displayName: dse.fmi.gateway
path: dse/gateway
workflows:
- generate-fmigateway
platforms:
- linux-amd64
- linux-x86
- linux-i386
- windows-x64
- windows-x86
channels:
- alias: scalar_vector
- alias: network_vector
tasks:
generate-fmimcl:
vars:
FMU_DIR:
required: true
hint: URI identifying an FMU (select from 'uses' or manually enter a path).
OUT_DIR:
required: true
hint: Directory where the model should be created (sim relative).
default: out/model
MCL_PATH:
required: true
hint: Path where the FMI MCL shared library is located.
FMU_MODELDESC:
required: false
hint: Path where the FMI modelDescription.xml should be created.
default: '{{.FMU_DIR}}/modelDescription.xml'
SIGNAL_GROUP:
required: false
hint: Path where the associated Signal Group should be created.
default: '{{.OUT_DIR}}/signalgroup.yaml'
generate-fmimodelc:
vars:
SIM:
required: true
hint: URI identifying the simulaiton (Simer layout) to be packaged as an FMU.
FMU_NAME:
required: true
hint: Name of the generated FMU.
PLATFORM:
required: false
hint: Selected platform of the generated FMU.
SIGNAL_GROUPS:
required: false
hint:
default:
VERSION:
required: false
hint: Version of the generated FMU.
UUID:
required: false
hint: UUID of the generated FMU.
OUT_DIR:
required: false
hint: Path where the FMU should be created.
default: out
patch-signalgroup:
vars:
INPUT:
required: true
hint: Path identifying the Signal Group to be patched.
PATCH:
required: true
hint: URI identifying the patch file to use.
REMOVE_UNKNOWN:
required: false
hint: Remove unknown items (i.e. not in the patch file)
2 changes: 0 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
version: '3'

vars:
# Supported Models (used by upstream tools).
SUPPORTED_MODELS: 'dse.fmi.mcl,dse.fmi.modelc,dse.fmi.gateway'
# When running from E2E tests (i.e. Docker in Docker), the ENTRYDIR (for
# Docker commands) must be set to the host relative path.
ENTRYDIR: '{{if .SIM}}{{.ENTRYWORKDIR}}/{{.SIM}}{{else}}{{.PWD}}{{end}}'
Expand Down

0 comments on commit 66058ff

Please sign in to comment.