Skip to content

Bootstrap server with auto restart #354

Bootstrap server with auto restart

Bootstrap server with auto restart #354

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-client:
name: Build Client
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: 18.x
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- uses: baptiste0928/cargo-install@v3
with:
crate: regen-lang
- uses: baptiste0928/cargo-install@v3
with:
crate: wasm-pack
- uses: baptiste0928/cargo-install@v3
with:
crate: txtpp
- run: task themes:ci client:ci --output group
- run: task build:client --output group
- uses: actions/upload-artifact@v4
with:
path: web-client/dist
name: app
retention-days: 3
build-docs:
name: Build Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: 18.x
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: baptiste0928/cargo-install@v3
with:
crate: txtpp
features: cli
- run: task docs:ci
- run: task docs:build
- uses: actions/upload-artifact@v4
with:
path: docs/src/.vitepress/dist
name: docs
retention-days: 3
build-server:
name: Build Server
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: musl-tools
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-linux-musl
- uses: Swatinem/rust-cache@v2
- uses: baptiste0928/cargo-install@v3
with:
crate: regen-lang
- run: task build:server
- uses: actions/upload-artifact@v4
with:
path: bin
name: bin
retention-days: 3