Rust MUSL static binary builder for Alpine
ActionsAction provides an environment with stable Rust, MUSL and x86_64-unknown-linux-musl target. This is based heavily off https://github.com/emk/rust-musl-builder. code for the base image from which the Dockerfile derives is here: https://github.com/stevenleadbeater/rust-musl-builder-base The following static binaries are compiled in to the base image as per the emk/rust-musl-builder repo
- Open SSL
- ZLib
- LibPQ
To compile a rust binary/library with x86_64-unknown-linux-musl target:
name: Static Musl Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build static
uses: stevenleadbeater/rust-musl-builder@master
with:
args: /bin/bash -c "cargo build --release --target=x86_64-unknown-linux-musl"
The Dockerfile and associated scripts and documentation in this project are released under the MIT License.
Rust MUSL static binary builder for Alpine is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.