anelson/Setup cgx

Install the cgx CLI, put it on PATH, and optionally prefetch tools to warm cgx's cache. Prefers prebuilt binaries, but falls back to building from source in the (unlikely) event that no suitable prebuilt binary exists for the runner's OS/architecture.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
versioncgx version to install, e.g. "0.0.11" or "v0.0.11" (a leading "v" is optional). Defaults to the latest release.nolatest
targetRust target triple to install (e.g. x86_64-unknown-linux-musl). Defaults to auto-detecting the runner's native target. When set, the action downloads that exact prebuilt archive instead of using the cargo-dist installer's auto-detection.no""
cargo-cgxAlso install the `cargo-cgx` binary (the `cargo cgx ...` subcommand).nofalse
github-tokenToken used to authenticate downloads (and prefetch-related GitHub lookups), avoiding anonymous rate limits. Defaults to the workflow token.no${{ github.token }}
cacheCache cgx's on-disk state (resolve cache + downloaded tool binaries) across runs. Restored before your steps and saved after the job. Set to "false" to disable.notrue
cache-key-prefixPrefix for the cache key.nocgx
app-dirDirectory for cgx's app state, exported as CGX_APP_DIR for all later steps. Defaults to a stable per-runner path under the runner tool cache.no""
prefetch-allAfter install, run `cgx --prefetch-all` to prepare every tool/alias in the repository's cgx.toml. Failures are logged as warnings and never fail the build.notrue
prefetchAfter install, prefetch these crate specs (one per line), e.g. "ripgrep@14". Each runs `cgx --prefetch <spec>`. Failures are logged as warnings and never fail the build.no""
namedescription
versionThe requested cgx version (normalized; "latest" or "vX.Y.Z").
cgx-versionThe concrete version reported by `cgx --version` after install.
pathAbsolute path to the installed cgx binary.
app-dirThe CGX_APP_DIR used for cgx's state.