Skip to content

Build cambia

Build cambia #7

Workflow file for this run

name: Build cambia
on:
workflow_dispatch:
jobs:
npm:
name: Build frontend
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '21'
- name: Install dependencies
run: npm install
working-directory: web
- name: Generate the static site
run: npm run build
working-directory: web
- name: Upload static site files
uses: actions/upload-artifact@v4
with:
name: webui-${{ matrix.os }}
path: web/build
cargo:
name: Build binaries
needs: npm
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Download static site files
uses: actions/download-artifact@v4
with:
name: webui-${{ matrix.os }}
path: web/build
- uses: dtolnay/rust-toolchain@stable
- name: Build w/ experimental rippers
run: cargo build --release --features experimental_rippers
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
name: cambia-${{ matrix.os }}
path: target/release/cambia${{ matrix.os == 'windows-latest' && '.exe' || '' }}