4e3a87084d
Build Mumble Web 2 release builder containers / windows-release-builder-container-build (push) Failing after 11s
84 lines
2.5 KiB
YAML
84 lines
2.5 KiB
YAML
name: Build Mumble Web 2
|
|
on: [workflow_dispatch]
|
|
|
|
jobs:
|
|
linux_build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Install rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: stable
|
|
targets: wasm32-unknown-unknown
|
|
|
|
- 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.1
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
|
|
- name: Build dioxus project
|
|
run: dx build --platform web --release -p mumble-web2-gui
|
|
|
|
- name: Upload mumble-web2-gui Artifact
|
|
uses: https://gitea.com/actions/gitea-upload-artifact@v4
|
|
with:
|
|
name: mumble-web2-gui
|
|
path: target/dx/mumble-web2-gui/release/web/public
|
|
retention-days: 5
|
|
|
|
- name: Build proxy
|
|
run: cargo build --release -p mumble-web2-proxy
|
|
|
|
- name: Upload mumble-web2-proxy Artifact
|
|
uses: https://gitea.com/actions/gitea-upload-artifact@v4
|
|
with:
|
|
name: mumble-web2-proxy
|
|
path: target/release/mumble-web2-proxy
|
|
retention-days: 5
|
|
|
|
windows_build:
|
|
runs-on: windows
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Install rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: Install cargo binstall
|
|
shell: powershell
|
|
run: Set-ExecutionPolicy Unrestricted -Scope Process; iex (iwr "https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.ps1").Content
|
|
|
|
- name: Install dioxus-cli
|
|
run: cargo binstall dioxus-cli --version 0.7.1
|
|
|
|
- uses: jwlawson/actions-setup-cmake@v2
|
|
with:
|
|
cmake-version: "4.2.0"
|
|
github-api-token: ""
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
|
|
- uses: ilammy/msvc-dev-cmd@v1
|
|
|
|
#- name: Check dioxus project
|
|
# run: cargo check -p mumble-web2-gui --features desktop
|
|
|
|
- name: Bundle dioxus project
|
|
run: dx bundle --verbose --trace -p mumble-web2-gui --release --windows
|
|
|
|
- name: Upload mumble-web2-gui Windows Artifact
|
|
uses: https://gitea.com/actions/gitea-upload-artifact@v4
|
|
with:
|
|
name: mumble-web2-gui-windows
|
|
path: gui/dist
|
|
retention-days: 5
|