Extension CI
Konten ini belum tersedia dalam bahasa Anda.
CI should run the same extension-pack validation path developers run locally.
Install gtc
Section titled “Install gtc”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 installIf your repository pins a specific gtc binary another way, keep that mechanism but still run the pack validation commands below.
Validate the Pack
Section titled “Validate the Pack”- 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-packRun doctor against the emitted .gtpack too when the build location is known.
Replay Generated Answers
Section titled “Replay Generated Answers”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 --yesCoding agents can update the answers file by first reading:
gtc wizard --schemaLegacy Note
Section titled “Legacy Note”The old GitHub Action flow for gtdx publish targeted .gtxpack artifacts. It is not the recommended extension CI path.