feat: enhance BitLinear and LayerLayout structures with detailed offs… #4
This file contains hidden or 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 Engine | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'engine/**' | |
| - 'Cargo.toml' | |
| - '.github/workflows/build-engine.yml' | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - 'engine/**' | |
| - 'Cargo.toml' | |
| jobs: | |
| build: | |
| name: Rust → Wasm | |
| 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 | |
| - name: Build (release) | |
| run: cd engine && wasm-pack build --target nodejs --release | |
| - name: Smoke test (engine.wasm exists and is reasonable size) | |
| run: | | |
| ls -lh engine/pkg/tern_engine_bg.wasm | |
| test -f engine/pkg/tern_engine_bg.wasm |