48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
#stages:
|
|
# - build
|
|
# - run
|
|
#
|
|
#variables:
|
|
# IMAGE_NAME: "$CI_REGISTRY_IMAGE/diouxs-builder:$CI_COMMIT_SHA"
|
|
#
|
|
#build-image:
|
|
# stage: build
|
|
# image: docker:latest
|
|
# services:
|
|
# - docker:dind
|
|
# variables:
|
|
# DOCKER_DRIVER: overlay2
|
|
# script:
|
|
# - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
|
|
# - docker build -t "$IMAGE_NAME" .
|
|
# - docker push "$IMAGE_NAME"
|
|
# only:
|
|
# - branches
|
|
|
|
name: Build dioxus container
|
|
on: [push]
|
|
|
|
jobs:
|
|
BuildContainer:
|
|
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.6.3
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
|
|
- name: Build dioxus project
|
|
run: dx build --platform web --release -p mumble-web2-gui
|