Sync on Linux #1
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
on: | |
release: | |
types: [created] | |
jobs: | |
release: | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: Windows | |
target: i686-pc-windows-msvc | |
runner: windows-latest | |
- name: Linux | |
target: x86_64-unknown-linux-gnu | |
runner: ubuntu-latest | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.runner }} | |
steps: | |
- name: Fetch Repository | |
uses: actions/checkout@v3 | |
- name: Update Rust Toolchain | |
run: rustup update stable | |
- name: Add Rust Target | |
run: rustup target add ${{ matrix.target }} | |
- name: Build Release Binary | |
run: cargo build --release --target ${{ matrix.target }} | |
- name: Upload Release Binary (Windows) | |
if: ${{ matrix.runner == 'windows-latest' }} | |
run: gh release upload ${{ github.ref_name }} ./target/${{ matrix.target }}/release/vrc-mpv.exe --clobber | |
- name: Upload Release Binary (Linux) | |
if: ${{ matrix.runner == 'ubuntu-latest' }} | |
run: gh release upload ${{ github.ref_name }} ./target/${{ matrix.target }}/release/vrc-mpv --clobber |