Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/metabiohacker-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: metabiohacker-ci

# CI gates for the MetaBioHacker stack (ADR-0013/0017/0018/0022/0024):
# frozen physics residual, mandatory pathology review, A/B-only claims,
# verifiable ledgers, and the real-slice honesty gate.

on:
push:
paths:
- "crates/sonic-ct/**"
- "crates/sonic-ct-wasm/**"
- "packages/metabiohacker/**"
- ".github/workflows/metabiohacker-ci.yml"
pull_request:
paths:
- "crates/sonic-ct/**"
- "crates/sonic-ct-wasm/**"
- "packages/metabiohacker/**"

jobs:
rust-engine:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: sonic_ct tests
run: cd crates/sonic-ct && cargo test --release
- name: sonic_ct clippy (lib)
run: cd crates/sonic-ct && cargo clippy --release --lib -- -D warnings
- name: build wasm
run: bash scripts/build-sonic-ct-wasm.sh

metabiohacker-gates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- name: install
run: cd packages/metabiohacker && npm ci || npm install
- name: CI gates + unit tests
run: cd packages/metabiohacker && npm test
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
[workspace]
exclude = ["external/ruqu", "external/rvdna", "examples/OSpipe", "examples/rvf", "crates/micro-hnsw-wasm", "crates/ruvector-hyperbolic-hnsw", "crates/ruvector-hyperbolic-hnsw-wasm", "examples/ruvLLM/esp32", "examples/ruvLLM/esp32-flash", "examples/edge-net", "examples/data", "examples/ruvLLM", "examples/delta-behavior", "crates/rvf", "crates/rvf/*", "crates/rvf/*/*", "examples/rvf-desktop", "crates/mcp-brain-server",
<<<<<<< HEAD
# emergent-time-wasm is a standalone cdylib with its own size-optimized
# `[profile.release]` (opt-level="z") and a `panic = "abort"` profile for a
# tiny wasm; excluded so it does not override the workspace opt-level=3.
"crates/emergent-time-wasm",
=======
# sonic-ct crates are self-contained detached workspaces (own [workspace]
# tables) so their native + wasm builds stay fast and dependency-free.
"crates/sonic-ct", "crates/sonic-ct-wasm",
>>>>>>> 9a0d2f196 (feat(sonic_ct): acoustic digital human workbench — Rust/WASM USCT + R3F UI)
# ruvector-postgres is a pgrx-based PostgreSQL extension. Its build script
# requires `$PGRX_HOME` set up via `cargo install cargo-pgrx --version 0.12.9`
# and `cargo pgrx init`, which downloads and builds multiple Postgres
Expand Down
14 changes: 14 additions & 0 deletions crates/sonic-ct-wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions crates/sonic-ct-wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# sonic-ct-wasm — raw C-ABI WebAssembly wrapper around the `sonic_ct` core.
#
# Deliberately avoids wasm-bindgen: it exports a small, stable set of
# `extern "C"` functions and lets the JS loader read flat buffers directly from
# linear memory. This keeps the build to a single `cargo build --target
# wasm32-unknown-unknown` with no extra toolchain (no wasm-pack / wasm-bindgen
# version coupling).
[package]
name = "sonic-ct-wasm"
version = "0.1.0"
edition = "2021"
rust-version = "1.74"
description = "WebAssembly (raw C-ABI) wrapper for the sonic_ct USCT simulator."
license = "MIT OR Apache-2.0"
repository = "https://github.com/ruvnet/ruvector"

[workspace]

[lib]
crate-type = ["cdylib"]

[dependencies]
sonic_ct = { path = "../sonic-ct" }

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
Loading
Loading