From 518c50d8a4cab6c7d9ec16a2ee7a2532f153e5c6 Mon Sep 17 00:00:00 2001 From: restitux Date: Wed, 11 Mar 2026 03:26:41 +0000 Subject: [PATCH] Add builds and CI for MacOS (#26) This change adds CI to build the desktop client for MacOS. This builds the desktop client as a dmg and a .app and uploads them from the CI pipeline. Reviewed-on: https://git.ohea.xyz/mumble/mumble-web2/pulls/26 Reviewed-by: Sam Sartor --- .gitea/workflows/build-release.yaml | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/.gitea/workflows/build-release.yaml b/.gitea/workflows/build-release.yaml index 5015681..945d616 100644 --- a/.gitea/workflows/build-release.yaml +++ b/.gitea/workflows/build-release.yaml @@ -42,6 +42,47 @@ jobs: path: target/release/mumble-web2-proxy retention-days: 5 + macos_build: + runs-on: macos + steps: + - name: Checkout + uses: actions/checkout@v5 + + - name: Restore Rust cache + uses: actions/cache/restore@v4 + with: + path: | + ~/.cargo + ./target + key: rust-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + rust-${{ runner.os }}- + + - name: Install cargo binstall + run: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash + + - name: Install dioxus-cli + run: cargo binstall dioxus-cli --version 0.7.3 --no-confirm + + - name: Build dioxus project + run: dx bundle --platform macos --release -p mumble-web2-gui + + - name: Save Rust cache + if: always() + uses: actions/cache/save@v4 + with: + path: | + ~/.cargo + ./target + key: rust-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} + + - name: Upload mumble-web2-gui Artifact + uses: https://gitea.com/actions/gitea-upload-artifact@v4 + with: + name: mumble-web2-gui-macos-arm64 + path: gui/dist + retention-days: 5 + windows_build: runs-on: windows steps: