Action provides an environment with Rust, MUSL and x86_64-unknown-linux-musl target.
To compile a rust binary/library with x86_64-unknown-linux-musl target:
action "build" {
env = {
BUILD_TARGET = "x86_64-unknown-linux-musl"
}
uses = "juankaram/rust-musl-action@master"
args = "cargo build --target $BUILD_TARGET --release"
}
Heavily inspired by GitHub Actions, Rust Action and David Lewis Work.
The Dockerfile and associated scripts and documentation in this project are released under the MIT License.