Query Actions#

Query actions retrieve Ansys SCADE installation directories and Python environments.

Get SCADE installation directory#

The get-scade-dir action takes an Ansys SCADE version as an input and returns its installation directory.

Source code for this action

Input

Description

Required

Default

scade-version

SCADE version in a format like 19.2, 20.1, and later.

True

Output

Description

scade-directory

Installation directory of the requested version.

Example#

Get SCADE installation directory basic example
get-scade-dir:
  name: "Get SCADE installation directory basic example"
  runs-on: [self-hosted, 'SCADE']
  steps:
    - name: "Get SCADE directory"
      uses: ansys/scade-actions/get-scade-dir@v2.0
      with:
        scade-version: "23.2"

Get corresponding Python environment#

The get-scade-python action takes an Ansys SCADE installation directory as an input and returns the name and path to the corresponding Python installation.

Source code for this action

Input

Description

Required

Default

scade-dir

Ansys SCADE installation directory. For example, 'C:\Program Files\Ansys Inc\v231\SCADE'.

True

Output

Description

python-name

Name of the directory containing the python.exe file.

python-dir

Directory containing the python.exe file.

python-version

Version of the python.exe file in the two-digit format.

Example#

Get SCADE Python version basic example
get-scade-python:
  name: "Get SCADE Python version basic example"
  runs-on: [self-hosted, 'SCADE']
  steps:
    - name: "Get SCADE Python"
      uses: ansys/scade-actions/get-scade-python@v2.0
      with:
        scade-dir: 'C:\Program Files\Ansys Inc\v232\SCADE'