houseabsolute/Build Rust Projects with Cross
Cross compile your Rust projects with cross (https://github.com/cross-rs/cross).
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit May 2, 2026
- License
- Apache 2.0
Pinned Snippet
uses: houseabsolute/actions-rust-cross@21b0f18dc621b25bfae556ff2791fca4173121e8 # v1.0.8tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| target | The target platform | yes | — |
| command | The commands to run. Use "both" to run both "build" and "test". | — | build |
| toolchain | The target toolchain to use. | — | stable |
| working-directory | The working directory for each step | — | . |
| GITHUB_TOKEN | A GitHub token, available in the secrets.GITHUB_TOKEN working-directory variable. | — | ${{ github.token }} |
| args | The arguments to be passed to cross or cargo when building, as a space-separated string. | — | "" |
| strip | Strip the compiled binary | — | false |
| cross-version | The version of cross to use. If not specified, then the latest version will be used. | — | — |
| cache-cross-binary | Cache the cross binary if one is installed. This is primarily for use in tests of this action. | — | true |
| force-use-cross | If this is true, the action will use cross even for targets where it is not needed. | — | false |
| use-rust-cache | Use `Swatinem/rust-cache@v2`. Defaults to true. | — | true |
| rust-cache-parameters | A 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. | — | {} |
Outputs
no outputs