Skip to content
settings

GitHub Action

Rust MUSL Builder

v1.0.0 Latest version

Rust MUSL Builder

settings

Rust MUSL Builder

Provides a Rust MUSL environment

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Rust MUSL Builder

uses: NSCoder/rust-musl-action@v1.0.0

Learn more about this action in NSCoder/rust-musl-action

Choose a version

GitHub Action for Rust and MUSL

Action provides an environment with Rust, MUSL and x86_64-unknown-linux-musl target.

Usage

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"
}

Attribution

Heavily inspired by GitHub Actions, Rust Action and David Lewis Work.

License

The Dockerfile and associated scripts and documentation in this project are released under the MIT License.