houseabsolute/Build Rust Projects with Cross

Cross compile your Rust projects with cross (https://github.com/cross-rs/cross).

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit May 2, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: houseabsolute/actions-rust-cross@21b0f18dc621b25bfae556ff2791fca4173121e8 # v1.0.8

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
targetThe target platformyes
commandThe commands to run. Use "both" to run both "build" and "test". build
toolchainThe target toolchain to use. stable
working-directoryThe working directory for each step.
GITHUB_TOKENA GitHub token, available in the secrets.GITHUB_TOKEN working-directory variable. ${{ github.token }}
argsThe arguments to be passed to cross or cargo when building, as a space-separated string. ""
stripStrip the compiled binaryfalse
cross-versionThe version of cross to use. If not specified, then the latest version will be used.
cache-cross-binaryCache the cross binary if one is installed. This is primarily for use in tests of this action. true
force-use-crossIf this is true, the action will use cross even for targets where it is not needed. false
use-rust-cacheUse `Swatinem/rust-cache@v2`. Defaults to true. true
rust-cache-parametersA JSON string containing parameters to pass to `Swatinem/rust-cache@v2`. You can use the `toJSON()` function in your action to make passing this easier. {}

no outputs