Skip to content

Commit

Permalink
0.1.0 - Sync on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ShayBox committed Aug 19, 2024
1 parent fe22840 commit d668c10
Show file tree
Hide file tree
Showing 10 changed files with 1,090 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea/
.vscode/
target/
Loading

0 comments on commit d668c10

Please sign in to comment.