-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (42 loc) · 1.22 KB
/
build.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
44
on: [push, pull_request]
name: Build
jobs:
release:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- name: 'Install Dependencies (Ubuntu)'
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install -y libasound2-dev libudev-dev
- name: 'Build (Release)'
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: 'Upload Artifact (Windows)'
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v3
with:
name: rose-offline-client-${{ matrix.os }}
path: target/release/rose-offline-client.exe
- name: 'Upload Artifact (Ubuntu, MacOS)'
if: matrix.os != 'windows-latest'
uses: actions/upload-artifact@v3
with:
name: rose-offline-client-${{ matrix.os }}
path: target/release/rose-offline-client