-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (34 loc) · 1.06 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
name: Build
on: [push, pull_request]
jobs:
build:
name: Build for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
name: [linux, windows, macos]
bin: [bff-cli, bff-gui]
include:
- name: linux
os: ubuntu-latest
- name: windows
os: windows-latest
bin_extension: .exe
- name: macos
os: macos-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Install dependencies (Linux)
run: sudo apt-get -y install libgtk-3-dev libasound2-dev
if: matrix.name == 'linux' && matrix.bin == 'bff-gui'
- name: Build
run: cargo build --release --locked --bin ${{ matrix.bin }}
- name: Archive Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.bin }}-${{ matrix.name }}-${{ github.sha }}
path: ./target/release/${{ matrix.bin }}${{ matrix.bin_extension }}