sealance-io/Setup Leo Compiler (Source Build)
Install the Leo programming language compiler by building from source with full security hardening
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| version | Leo version to install (without v prefix, e.g., "4.3.0") | yes | — |
| rust-version | Rust toolchain version (e.g., "1.96.0" or "stable") | no | stable |
| enable-cache | Enable caching of Leo binary and cargo registry | no | true |
| cache-save | When to save cache. Options: - "always": Save on every run (use for default branch) - "on-success": Save only if build succeeds - "never": Never save (use for PRs to avoid cache pollution) Recommendation: "always" on default branch, "never" on PRs | no | on-success |
| run-audit | Run cargo audit to check for known vulnerabilities in dependencies | no | true |
| audit-deny-warnings | Fail if cargo audit finds any warnings (not just errors) | no | false |
| working-directory | Directory to clone and build Leo (default: runner temp) | no | "" |
Outputs
| name | description |
|---|---|
| leo-version | Installed Leo version string |
| cache-hit-binary | Whether the Leo binary was restored from cache |
| cache-hit-cargo | Whether the cargo registry was restored from cache |
| build-time-seconds | Time taken to build Leo (0 if cached) |