name: Release Binaries
on:
push:
tags:
- 'v*'
jobs:
publish_release:
name: Build Release Binary (${{ matrix.target }})
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: aarch64-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
target: ${{ matrix.target }}
- name: Build Binary
run: cargo build --release --target ${{ matrix.target }}
- name: Upload Binary Artifact
uses: actions/upload-artifact@v4
with:
name: rivox-${{ matrix.target }}
path: target/${{ matrix.target }}/release/rivox*