Skip to content

update build process for windows, redo cross comp for windows #45

update build process for windows, redo cross comp for windows

update build process for windows, redo cross comp for windows #45

Workflow file for this run

name: "Build desktop app"
on:
push:
paths:
- "software/**"
- ".github/workflows/build-software.yaml"
jobs:
build-software:
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: "Install cargo-binstall"
uses: cargo-bins/[email protected]
- 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
- name: "Build software (Windows)"
run: cd software/ && cross build --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