Skip to content

[2] Calc report enrichment, PRO workflow polish, and product step 1 continuation #520

[2] Calc report enrichment, PRO workflow polish, and product step 1 continuation

[2] Calc report enrichment, PRO workflow polish, and product step 1 continuation #520

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy, rust-src
- name: Install mold linker
run: sudo apt-get install -y mold
- name: Install mold linker
run: sudo apt-get update && sudo apt-get install -y mold
- uses: Swatinem/rust-cache@v2
with:
workspaces: engine
- name: Clippy
working-directory: engine
run: cargo clippy --lib -- -W clippy::all -A clippy::erasing_op
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rust-src
- name: Install mold linker
run: sudo apt-get install -y mold
- name: Install mold linker
run: sudo apt-get update && sudo apt-get install -y mold
- uses: Swatinem/rust-cache@v2
with:
workspaces: engine
- uses: taiki-e/install-action@nextest
- name: Shell benchmarks gate
working-directory: engine
run: cargo nextest run --profile ci -E 'test(/benchmark_shell/) + test(/benchmark_beam_shell/) + test(/benchmark_plate/) + test(/benchmark_navier/) + test(/benchmark_scordelis/) + test(/benchmark_cantilever/) + test(/benchmark_pinched/) + test(/test_quad_thin_plate/)'
- name: Shell acceptance gate
working-directory: engine
run: cargo nextest run --profile ci -E 'test(/acceptance_.*shell/) + test(/acceptance_.*diaphragm/)'
- name: Constraint benchmarks gate
working-directory: engine
run: cargo nextest run --profile ci -E 'test(/benchmark_.*constraint/)'
- name: Sparse shell gates
working-directory: engine
run: cargo nextest run --profile ci --test sparse_shell_gates
- name: Run all tests
working-directory: engine
run: cargo nextest run --profile ci -E 'all() - test(harmonic_phase_breakdown) - test(harmonic_modal_vs_direct_timing)'
timeout-minutes: 20
- name: Benchmarks compile
working-directory: engine
run: cargo bench --no-run
web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: web/package-lock.json
- name: Build WASM engine
working-directory: engine
run: wasm-pack build --target web --out-dir ../web/src/lib/wasm --no-opt
- name: Install dependencies
working-directory: web
run: npm ci
- name: Build
working-directory: web
run: npm run build