The rust-build-linux image is an image that can be used to build rust projects
using the latest stable version of the rust tools.
tasks: build-linux: type: docker/run image: convey/rust-build-linux:latest command: --release --target x86_64-linux-musl
Additional arguments to pass to cargo build.
This image has multiple Linux toolchains it supports,
being the default. The following targets are available:
Note that when using a non-default target for a cargo build, the output
of your file with a traditional Cargo.toml file will be put into the
target/<target triple>/debug/ or
output directory. These directories can then be used, as an example, from
export task after building for multiple architectures.
export-myproject: type: export files: - target/release/myproject:myproject-linux-gnu - target/x86_64-unknown-linux-musl/release/myproject:myproject-linux-musl
The are no image specific environment variables.