-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (43 loc) · 1.22 KB
/
CrossPlatformBuilder.yaml
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
45
46
47
48
49
50
name: CrossPlatformBuild
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: Build for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
name: [linux, windows, macos]
include:
- name: linux
os: ubuntu-latest
artifact_name: target/release/gunfollower
asset_name: gunfollower-linux
- name: windows
os: windows-latest
artifact_name: target/release/gunfollower.exe
asset_name: gunfollower-windows
- name: macos
os: macos-latest
artifact_name: target/release/gunfollower
asset_name: gunfollower-macos
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- name: Clippy
run: cargo clippy -- -D warnings
- name: Build
run: cargo build --release --locked
- name: Upload binaries to release
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.asset_name }}
path: ${{ matrix.artifact_name }}