rul1an/Zig Cross-Compile Action

Secure, cached, polyglot cross-compilation toolchain using Zig.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
versionZig version (e.g. 0.13.0, 0.13.x, stable)no0.13.0
targetZig target triple (e.g. x86_64-linux-gnu). Supersedes target_preset.no
project-typeProject type: zig | c/go/rust/custom (polyglot env support only)nocustom
cmdBuild command to execute (run depends on project-type)no""
verify-levelDeprecated: no-op in v3.nobasic
strict_versionFail if the exact version cannot be resolvednotrue
setup_onlyOnly set up toolchain/env, do not run build commandnofalse
target_presetTarget alias (e.g. linux-x86_64-musl, macos-arm64)no
use_cacheEnable caching of Zig artifacts (~/.cache/zig)nofalse
cache_suffixOptional suffix for cache keysno""
run_testsRun tests before buildnofalse
test_scriptScript to execute testsno""
perf_commandOptional performance benchmark commandno""
sbomGenerate SBOM using Syft (Linux only)nofalse
sbom_formatSBOM formatnocyclonedx-json
sbom_targetPath to input artifact for SBOM generationno""
sbom_outputSBOM output pathnodist/sbom.cdx.json
signSign artifact using Cosign (Linux only)nofalse
sign_artifactPath to artifact to signno""
namedescription
zig_pathPath to installed Zig binary
zig_version_resolvedResolved Zig version
zig_target_tripleResolved target triple
cache_hitCache hit status