Skip to content

MarioDfinity/rust-musl-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action for Rust and MUSL

Action provides an environment with stable Rust, MUSL and the following targets:

  • x86_64-unknown-linux-musl
  • aarch64-unknown-linux-musl

Usage

To compile a rust binary/library with x86_64-unknown-linux-musl target: Example include also the way to upload the final binary as artifact.

name: Rust-static-build
on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]
env:
  CARGO_TERM_COLOR: always
  BUILD_TARGET: x86_64-unknown-linux-musl
  BINARY_NAME: <binary_name>
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Build-musl
      uses: MarioDfinity/rust-musl-action@master
      with:
        args: cargo build --target $BUILD_TARGET --release
    - uses: actions/upload-artifact@v2
      with:
        name: ${{ env.BINARY_NAME }}
        path: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }}*

License

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

About

GitHub Action for Rust and MUSL

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Dockerfile 79.0%
  • Shell 21.0%