Skip to content

Upload binaries on release #3

Upload binaries on release

Upload binaries on release #3

Workflow file for this run

name: Cargo Test
on:
push:
branches: [main]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Run tests
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
osname: linux
- os: windows-latest
osname: windows
exe_suffix: .exe
- os: macos-latest
osname: macos_arm
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- run: cargo test --verbose
- if: ${{ matrix.os == 'ubuntu-latest' }}
uses: ./.github/actions/codecov
with:
token: ${{ secrets.CODECOV_TOKEN }}
# NOMERGE
- run: cargo build --release
- uses: actions/upload-artifact@v4
with:
name: muse2_${{ matrix.osname }}
path: target/release/muse2${{ matrix.exe_suffix }}