-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.5 KB
/
build-software.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
name: "Build desktop app"
on:
push:
paths:
- "software/**"
- ".github/workflows/build-software.yaml"
jobs:
build-software-linux:
runs-on: ubuntu-latest
steps:
- name: "Checkout repo"
uses: actions/checkout@v4
- name: "Get dependencies"
uses: awalsh128/cache-apt-pkgs-action@v1
with:
version: 1
execute_install_scripts: true
packages: libudev-dev
- name: "Update Rust"
uses: dtolnay/rust-toolchain@stable
- name: "Build software (Linux)"
run: cd software/ && cargo build --release
- name: "Upload artifact (Linux)"
uses: actions/upload-artifact@v4
with:
name: jb-software-linux
path: software/target/release/jukebox_desktop
retention-days: 90
build-software-windows:
runs-on: ubuntu-latest
steps:
- name: "Checkout repo"
uses: actions/checkout@v4
- name: "Update Rust"
uses: dtolnay/rust-toolchain@stable
- name: "Install cargo-binstall"
uses: cargo-bins/[email protected]
- name: "Install cross-rs"
run: cargo binstall cross
- name: "Build software (Windows)"
run: cd software/ && cross build --target x86_64-pc-windows-gnu --release
- name: "Upload artifact (Windows)"
uses: actions/upload-artifact@v4
with:
name: jb-software-windows
path: software/target/x86_64-pc-windows-gnu/release/jukebox_desktop.exe
retention-days: 90