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: