Zum Inhalt springen

Extension CI

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

CI should run the same extension-pack validation path developers run locally.

Use cargo binstall gtc when your runner has Rust tooling available, then let gtc install fetch the Greentic toolchain pieces required by the repo.

- name: Install gtc
run: |
cargo binstall gtc --no-confirm
gtc install

If your repository pins a specific gtc binary another way, keep that mechanism but still run the pack validation commands below.

- name: Validate extension pack
run: |
gtc dev pack lint --in ./my-extension-pack
gtc dev pack resolve --in ./my-extension-pack
gtc dev pack build --in ./my-extension-pack
gtc dev pack doctor ./my-extension-pack

Run doctor against the emitted .gtpack too when the build location is known.

If the extension pack is generated from wizard answers, keep the answers file in the repository and replay it before validation:

- name: Generate extension pack
run: gtc wizard --answers extension-pack-answers.json --non-interactive --yes

Coding agents can update the answers file by first reading:

Terminal window
gtc wizard --schema

The old GitHub Action flow for gtdx publish targeted .gtxpack artifacts. It is not the recommended extension CI path.