-
-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (34 loc) · 1.17 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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-log.exe --clobber
- name: Upload Release Binary (Linux)
if: ${{ matrix.runner == 'ubuntu-latest' }}
run: gh release upload ${{ github.ref_name }} ./target/${{ matrix.target }}/release/vrc-log --clobber