Skip to content

Instantly share code, notes, and snippets.

@Thearas
Created Feb 22, 2021
Embed
What would you like to do?
GitHub Action Rust MUSL Binary
name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build-test-runner:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
target: x86_64-unknown-linux-musl
- name: Install Cross
run: cargo install cross
- name: Build
run: cross build --target x86_64-unknown-linux-musl --release -Z unstable-options --out-dir output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment