2amlogic/klt verify
Run klayout-tools (klt) verbs against a layout in CI -- DRC, layout metrics, and more -- and publish JSON outputs, klt render PNGs, and a rendered step summary, exactly as a local `klt` invocation would.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| layout | Path (relative to the caller's checkout) to the GDSII/OASIS layout file to check, e.g. `layout/my_block.gds`. | yes | — |
| block | Path to the block directory the `layout-metrics` verb operates on (see docs/cli/layout-metrics.md's "Block directory layout"). Defaults to the directory containing `layout`. | no | "" |
| verbs | Comma-separated list of `klt` verbs to run against `layout`. Supported: drc, precheck, layers, cells, stats, render, layout-metrics. `klt report --format github-summary` is only run over the drc/layout-metrics (and lvs, when added) outputs, since those are the envelope kinds it understands -- see docs/cli/report.md. | no | drc,layout-metrics |
| deck | DRC/precheck rule deck (the `--deck` value passed to `klt drc` / `klt precheck` / `klt layout-metrics`): sky130 or gf180mcu. | no | sky130 |
| fetch-pdk | Fetch the pinned lambdapdk data set via this action's own scripts/fetch-pdks.sh before running verbs. Off by default: neither `drc` nor `precheck`'s built-in rule decks require it, and it is a multi-hundred-MB download (cache it in the caller workflow with actions/cache keyed on this action's pinned ref if enabling it). | no | false |
| klt-version | A released klayout-tools version to install from PyPI (e.g. `0.4.2`) instead of building from this action's own pinned source checkout. Leave empty (default) to install exactly the source this action is pinned to, so the action always runs the exact `klt` build it is version-locked to -- the recommended default. | no | "" |
| python-version | Python version to set up before installing klt. | no | 3.12 |
| output-dir | Directory (relative to the caller's workspace) to write klt JSON outputs and renders to. | no | klt-action-output |
| json-artifact-name | Name of the uploaded artifact holding every verb's JSON output. | no | klt-json-outputs |
| render-artifact-name | Name of the uploaded artifact holding `klt render` PNGs. | no | klt-render |
| fail-on-findings | Fail this action's step (non-zero exit) when any verb reports a non-clean result (DRC violations, precheck failures, ...) or a hard error. Set to "false" to always exit 0 and rely on the `status` output / step summary / JSON artifacts instead. | no | true |
Outputs
| name | description |
|---|---|
| status | "success" if every requested verb ran clean, "failure" otherwise (regardless of `fail-on-findings`). |
| summary-markdown-path | Path (under `output-dir`) to the rendered `klt report --format github-summary` markdown that was appended to $GITHUB_STEP_SUMMARY. |
| lambdapdk-dir | Absolute path to the fetched lambdapdk tree when `fetch-pdk: true` (empty otherwise). Not on the `klt pdk find`/`list`/`env` resolution path -- see docs/cli/pdk.md's "Scope (v1)" -- so verbs that need it (e.g. `klt stats`/`klt render` against a lambdapdk fixture GDS) must be pointed at it explicitly. |