open-source

build

Purpose

Automate building the LabVIEW Icon Editor project, including cleaning, building libraries, and packaging.

Parameters

Common parameters are described in Common parameters.

Required

Optional

None.

GitHub Action inputs

GitHub Action inputs are provided in snake_case, while CLI parameters use PascalCase. The table below maps each input to its corresponding CLI parameter. For details on shared CLI flags, see Common parameters.

Input CLI parameter Description
relative_path RelativePath Path relative to the working directory. Use ‘.’ to refer to the working directory.
major Major Major version component.
minor Minor Minor version component.
patch Patch Patch version component.
build Build Build number.
commit Commit Commit identifier.
labview_minor_revision LabVIEWMinorRevision LabVIEW minor revision.
company_name CompanyName Company name for the build.
author_name AuthorName Author name for the build.
gcli_path gcliPath Optional path to the g-cli executable.
working_directory WorkingDirectory Base directory for the action; relative paths are resolved from here.
log_level LogLevel Verbosity level (ERROR|WARN|INFO|DEBUG).
dry_run DryRun If true, simulate the action without side effects.

Examples

CLI

pwsh -File actions/Invoke-OSAction.ps1 -ActionName build -ArgsJson '{
  "WorkingDirectory": ".",
  "RelativePath": ".",
  "Major": 1,
  "Minor": 0,
  "Patch": 0,
  "Build": 1,
  "Commit": "abcdef",
  "LabVIEWMinorRevision": "3",
  "CompanyName": "Acme Corp",
  "AuthorName": "Jane Doe"
}'

GitHub Action

- name: Build project
  uses: LabVIEW-Community-CI-CD/open-source/build@v1
  with:
    working_directory: '.'
    relative_path: '.'
    major: 1
    minor: 0
    patch: 0
    build: 1
    commit: abcdef
    labview_minor_revision: '3'
    company_name: 'Acme Corp'
    author_name: 'Jane Doe'

Return Codes

For troubleshooting tips, see the troubleshooting guide.

See also