v0.0.10 #12
Workflow file for this run
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 and Release Rust Binaries | |
on: | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target: | |
- x86_64-unknown-linux-gnu | |
- aarch64-apple-darwin | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install target for aarch64-apple-darwin | |
run: rustup target add aarch64-apple-darwin | |
- name: Install target for x86_64-unknown-linux-gnu | |
run: rustup target add x86_64-unknown-linux-gnu | |
- name: Build for ${{ matrix.target }} | |
run: cargo build --release --target ${{ matrix.target }} | |
- name: Upload Release Asset | |
uses: actions/upload-release-asset@v1 | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: target/${{ matrix.target }}/release/notation | |
asset_name: notation-${{ matrix.target }} | |
asset_content_type: application/octet-stream | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |