update Cargo.lock (#253) #369
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- uses: arduino/setup-task@v2 | |
with: | |
version: 3.x | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.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: txtpp | |
- uses: baptiste0928/cargo-install@v3 | |
with: | |
crate: wasm-pack | |
- 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: 20.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 | |