Add builds and CI for MacOS #26
@@ -42,6 +42,47 @@ jobs:
|
|||||||
path: target/release/mumble-web2-proxy
|
path: target/release/mumble-web2-proxy
|
||||||
retention-days: 5
|
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:
|
windows_build:
|
||||||
runs-on: windows
|
runs-on: windows
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user