Sprint 14: egui TopBottomPanel 리본 + CollapsingHeader SidePanel (상부구조·추가부재·선형·프로젝트) Sprint 15: IncrementalDb 전 Feature 타입 확장 (girder→7종), dirty-tracking 20 unit tests Sprint 16: Gitea + GitHub Actions CI/CD (check/test/clippy/fmt + 멀티플랫폼 릴리스) Sprint 17: AlignmentTransform + AlignmentScene — 선형 국소 프레임 → 세계 좌표 변환 Sprint 18: OcctKernel 교각(16각형 기둥+코핑) + 교대(흉벽+푸팅+날개벽) B-rep Sprint 19: CrossBeamIR + ExpansionJointIR — IR/DSL/kernel/scene 전 계층, sweep_profile_flat_x Sprint 20: 테스트 4층 — Layer1 insta 스냅샷(7종), Layer2 기하 불변량(19), Layer3 두-커널(7), Layer4 proptest(7) — 61 tests pass Sprint 21: cimery-usd PureRustKernel 실제 기하 변환 + BridgeExporter 증분 캐시 Sprint 22: viewer wasm feature + wasm-bindgen/web-sys + GitHub Actions Cloudflare Pages 배포 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
81 lines
2.2 KiB
YAML
81 lines
2.2 KiB
YAML
# cimery — WASM/PWA build (Sprint 22, ADR-001 dual-target)
|
|
#
|
|
# Builds cimery-viewer as a WebAssembly application.
|
|
# wgpu supports WebGPU (Chromium MVP), winit supports browser events.
|
|
#
|
|
# Constraints:
|
|
# - OCCT is NOT available for WASM (--features occt excluded)
|
|
# - Target: wasm32-unknown-unknown
|
|
# - Packager: wasm-bindgen-cli
|
|
#
|
|
# Build output: pkg/ directory → deploy to Cloudflare Pages (cimery-web.pages.dev)
|
|
|
|
name: WASM
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'crates/viewer/**'
|
|
- 'crates/kernel/**'
|
|
- 'crates/ir/**'
|
|
- 'crates/core/**'
|
|
- '.github/workflows/wasm.yml'
|
|
workflow_dispatch: # manual trigger
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build-wasm:
|
|
name: Build WASM
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
targets: wasm32-unknown-unknown
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
|
|
- name: Install wasm-pack
|
|
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
|
|
|
- name: Build WASM (cimery-viewer)
|
|
run: |
|
|
wasm-pack build crates/viewer --target web --out-dir ../../pkg \
|
|
--no-default-features --features wasm
|
|
# Note: 'wasm' feature gates winit/wgpu for web target
|
|
# OCCT is always excluded for WASM
|
|
|
|
- name: Upload WASM artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: wasm-pkg
|
|
path: pkg/
|
|
retention-days: 7
|
|
|
|
# ── Deploy to Cloudflare Pages (on main only) ──────────────────────────────
|
|
deploy-pages:
|
|
name: Deploy to Cloudflare Pages
|
|
needs: build-wasm
|
|
runs-on: ubuntu-latest
|
|
if: github.ref == 'refs/heads/main'
|
|
environment:
|
|
name: cimery-web
|
|
url: https://cimery-web.pages.dev
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/download-artifact@v4
|
|
with:
|
|
name: wasm-pkg
|
|
path: pkg/
|
|
- name: Deploy to Cloudflare Pages
|
|
uses: cloudflare/pages-action@v1
|
|
with:
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
|
projectName: cimery-web
|
|
directory: pkg
|