fix final remaining type issues #157
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Build desktop app" | |
| on: | |
| push: | |
| paths: | |
| - "desktop/**" | |
| - ".github/workflows/build-desktop.yaml" | |
| jobs: | |
| build-desktop-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Checkout repo" | |
| uses: actions/checkout@v6 | |
| - name: "Get dependencies" | |
| uses: awalsh128/cache-apt-pkgs-action@v1 | |
| with: | |
| version: 1 | |
| execute_install_scripts: true | |
| packages: libudev-dev libgtk-3-dev libxdo-dev libpulse-dev | |
| - name: "Update Rust" | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: "Build desktop (Linux)" | |
| env: | |
| DISCORD_CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }} | |
| DISCORD_CLIENT_SECRET: ${{ secrets.DISCORD_CLIENT_SECRET }} | |
| run: cd desktop/ && cargo build -F "discord" --release && mv target/release/jukebox_desktop target/release/jukebox_desktop_linux | |
| - name: "Upload artifact (Linux)" | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: jb-desktop-linux | |
| path: desktop/target/release/jukebox_desktop_linux | |
| retention-days: 90 | |
| build-desktop-windows: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Checkout repo" | |
| uses: actions/checkout@v6 | |
| - name: "Update Rust" | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: "Install cargo-binstall" | |
| uses: cargo-bins/cargo-binstall@v1.19.1 | |
| - name: "Install cross-rs" | |
| run: cargo binstall cross | |
| - name: "Build desktop (Windows)" | |
| env: | |
| DISCORD_CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }} | |
| DISCORD_CLIENT_SECRET: ${{ secrets.DISCORD_CLIENT_SECRET }} | |
| run: cd desktop/ && cross build --target x86_64-pc-windows-gnu -F "discord" --release && mv target/x86_64-pc-windows-gnu/release/jukebox_desktop.exe target/x86_64-pc-windows-gnu/release/jukebox_desktop_windows.exe | |
| - name: "Upload artifact (Windows)" | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: jb-desktop-windows | |
| path: desktop/target/x86_64-pc-windows-gnu/release/jukebox_desktop_windows.exe | |
| retention-days: 90 |