Public | Automated Build

Last pushed: 23 days ago
Short Description
A convey image for building Rust code on Linux.
Full Description

convey/rust-build-linux

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.

Example

tasks:
  build-linux:
    image: convey/rust-build-linux:latest
    command: --release --target x86_64-linux-musl

Command

Additional arguments to pass to cargo build.

This image has multiple Linux toolchains it supports, x86_64-unknown-linux-gnu
being the default. The following targets are available:

  • i686-unknown-linux-gnu
  • i686-unknown-linux-musl
  • x86_64-unknown-linux-gnu
  • x86_64-unknown-linux-musl

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 target/<target triple>/release/
output directory. These directories can then be used, as an example, from
an export task after building for multiple architectures.

For example:

export-myproject:
    type: export
    files:
        - target/release/myproject:myproject-linux-gnu
        - target/x86_64-unknown-linux-musl/release/myproject:myproject-linux-musl

Environment Variables

The are no image specific environment variables.

Docker Pull Command
Owner
convey
Source Repository