Skip to content

Clarification of custom runners #1173

Answered by Emilgardis
sadilekivan asked this question in Q&A
Discussion options

You must be logged in to vote

Runners work the same for cross as with cargo, however you'd need to mount the executable so that it's visible in the docker container. So, instead of using the runner option, use CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUNNER directly.

The only things that are mounted is the current directory, and the workspace directory, (e.g the folder with the lowest Cargo.toml)

You can mount arbitrary folders with https://github.com/cross-rs/cross/wiki/Configuration#targettargetenv

I do notice that you're using nushell as well, and that would mean that you'd have to install nushell in the docker image too or make the script work in bash (note that cargo is not included in the image at the pre-build step

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Emilgardis
Comment options

@sadilekivan
Comment options

Answer selected by sadilekivan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants