chore: add a github workflow to build for musl #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build musl target | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Build using rust-musl-builder | |
run: | | |
docker run --rm -v "$(pwd)":/home/rust/src ekidd/rust-musl-builder cargo build --release | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: myapp-linux-musl | |
path: target/x86_64-unknown-linux-musl/release/ |