forked from librespot-org/librespot
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.36 KB
/
Copy pathbuild.yml
File metadata and controls
50 lines (41 loc) · 1.36 KB
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: Build and Release Artifacts
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]
env:
CARGO_TERM_COLOR: always
jobs:
windows-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- run: cargo build --release
- uses: actions/upload-artifact@v2
with:
name: librespot-win-x64.exe
path: target/release/librespot.exe
mac-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: cargo build --release && rustup target add aarch64-apple-darwin && cargo build --target=aarch64-apple-darwin --release
- uses: actions/upload-artifact@v2
with:
name: librespot-mac-x64
path: target/release/librespot
- uses: actions/upload-artifact@v2
with:
name: librespot-mac-arm64
path: target/aarch64-apple-darwin/release/librespot
linux-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt-get update && sudo apt-get install libpulse-dev portaudio19-dev libasound2-dev libsdl2-dev gstreamer1.0-dev libgstreamer-plugins-base1.0-dev libavahi-compat-libdnssd-dev
&& cargo build --release
- uses: actions/upload-artifact@v2
with:
name: librespot-linux-x64
path: target/release/librespot