Merge pull request #2 from WIPACrepo/workflow-improvements #12
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: cargo build (release) | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v4 | |
- name: Install system dependencies | |
run: | | |
sudo apt install musl-tools --yes | |
rustup target add x86_64-unknown-linux-musl | |
- name: Compile a local package and all of its dependencies | |
run: | | |
cargo build --release --target=x86_64-unknown-linux-musl |