fix #38 #63
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: Rust | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: docker://rust:alpine | |
- name: Install musl-gcc | |
run: sudo apt -y install musl-tools | |
- name: Install musl rust target | |
run: rustup target add x86_64-unknown-linux-musl | |
- name: Build Release | |
run: cargo build --release --target x86_64-unknown-linux-musl --verbose | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: neuters-linux-musl | |
path: target/x86_64-unknown-linux-musl/release/neuters | |
build_windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: build | |
run: cargo build --release --verbose | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: neuters-win | |
path: target/release/neuters.exe | |
build_macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: build | |
run: cargo build --release --verbose | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: neuters-mac | |
path: target/release/neuters |