SCADE Rapid Prototyper Actions#

Execute SCADE Rapid Prototyper command line tools on models.

Generate configuration#

The rapid-prototyper-generate action executes ScadeRPConsole.exe batch generate on a SCADE Rapid Prototyper project for a given configuration.

The produced artifact depends on the configuration’s type:

  • Scade One Co-simulation: Scade One project.

  • Windows: standalone executable.

  • FMU: FMU.

Source code for this action

Input

Description

Required

Default

scade-dir

Ansys SCADE installation directory.

True

project

Path of the SCADE Rapid Prototyper project.

True

configuration

Configuration to use for generation.

True

checkout

Whether to clone the repository on the CI/CD machine.

False

true

Output

Description

target-directory

Path of the target directory where the code is generated.

Example#

Generate code basic example
rapid-prototyper-generate:
  name: "Generate code basic example"
  runs-on: [self-hosted, 'SCADE']
  steps:
    - name: "Generate configuration"
      uses: ansys/scade-actions/rapid-prototyper-generate@v3.0
      id: generate-code
      with:
        scade-dir: 'C:\Program Files\Ansys Inc\v242\SCADE'
        project: 'Model\Model.etp'
        configuration: 'Windows'

    - name: "Upload generated code to artifacts"
      uses: actions/upload-artifact@v4
      with:
        name: "generated-code"
        path: ${{ steps.generate-code.outputs.target-directory }}/*.*
        retention-days: 7
        if-no-files-found: error