Sprint 14~22 — egui 리본 UI + OcctKernel B-rep + 가로보/신축이음 + 선형 좌표 + USD 익스포트 + WASM + CI/CD + 테스트 4층
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>
This commit is contained in:
80
cimery/.github/workflows/ci.yml
vendored
Normal file
80
cimery/.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
# cimery — GitHub Actions CI (ADR-003 A3: GitHub for Win/macOS builds)
|
||||
# Mirrors Gitea CI but adds Windows and macOS runners.
|
||||
# OcctKernel build requires Windows + VS Build Tools.
|
||||
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
RUST_LOG: info
|
||||
|
||||
jobs:
|
||||
# ── Cross-platform check ───────────────────────────────────────────────────
|
||||
check:
|
||||
name: check (${{ matrix.os }})
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: cargo check (PureRust)
|
||||
run: cargo check --workspace
|
||||
|
||||
# ── Tests ──────────────────────────────────────────────────────────────────
|
||||
test:
|
||||
name: test (${{ matrix.os }})
|
||||
runs-on: ${{ matrix.os }}
|
||||
needs: check
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: cargo test (workspace, PureRust)
|
||||
run: cargo test --workspace
|
||||
|
||||
# ── Windows OCCT build (optional, gate on branch) ─────────────────────────
|
||||
test-occt-windows:
|
||||
name: test OCCT (Windows)
|
||||
runs-on: windows-latest
|
||||
# Only run on main or release branches to save minutes
|
||||
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Install OCCT (via vcpkg)
|
||||
shell: pwsh
|
||||
run: |
|
||||
git clone https://github.com/microsoft/vcpkg C:\vcpkg --depth=1
|
||||
C:\vcpkg\bootstrap-vcpkg.bat -disableMetrics
|
||||
C:\vcpkg\vcpkg.exe install opencascade:x64-windows
|
||||
echo "VCPKG_ROOT=C:\vcpkg" >> $env:GITHUB_ENV
|
||||
- name: cargo test (OCCT)
|
||||
shell: cmd
|
||||
run: |
|
||||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
||||
cargo test -p cimery-kernel --features occt
|
||||
|
||||
# ── Lint ───────────────────────────────────────────────────────────────────
|
||||
clippy:
|
||||
name: clippy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
components: clippy
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- run: cargo clippy --workspace -- -D warnings
|
||||
96
cimery/.github/workflows/release.yml
vendored
Normal file
96
cimery/.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
# cimery — Release build workflow (ADR-003 A3)
|
||||
# Triggered by pushing a version tag: git tag v0.1.0 && git push --tags
|
||||
#
|
||||
# Builds:
|
||||
# - Windows x64 binary (cimery-viewer.exe)
|
||||
# - macOS arm64 binary (cimery-viewer)
|
||||
# - Linux x64 binary (cimery-viewer)
|
||||
#
|
||||
# Artifacts are uploaded to the GitHub Release.
|
||||
# Code signing: placeholder (Azure Trusted Signing — ADR-003 A3).
|
||||
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: build (${{ matrix.target }})
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- os: windows-latest
|
||||
target: x86_64-pc-windows-msvc
|
||||
artifact: cimery-viewer.exe
|
||||
archive: cimery-viewer-windows-x64.zip
|
||||
- os: macos-latest
|
||||
target: aarch64-apple-darwin
|
||||
artifact: cimery-viewer
|
||||
archive: cimery-viewer-macos-arm64.tar.gz
|
||||
- os: ubuntu-latest
|
||||
target: x86_64-unknown-linux-gnu
|
||||
artifact: cimery-viewer
|
||||
archive: cimery-viewer-linux-x64.tar.gz
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
targets: ${{ matrix.target }}
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
|
||||
- name: Build release (PureRust — no OCCT for CI)
|
||||
run: cargo build --release -p cimery-viewer --target ${{ matrix.target }}
|
||||
|
||||
- name: Package (Windows)
|
||||
if: matrix.os == 'windows-latest'
|
||||
shell: pwsh
|
||||
run: |
|
||||
$bin = "target/${{ matrix.target }}/release/${{ matrix.artifact }}"
|
||||
Compress-Archive -Path $bin -DestinationPath ${{ matrix.archive }}
|
||||
|
||||
- name: Package (Unix)
|
||||
if: matrix.os != 'windows-latest'
|
||||
run: |
|
||||
bin="target/${{ matrix.target }}/release/${{ matrix.artifact }}"
|
||||
tar czf ${{ matrix.archive }} -C "$(dirname $bin)" "$(basename $bin)"
|
||||
|
||||
- name: Upload to Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: ${{ matrix.archive }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# ── Nightly channel tag ────────────────────────────────────────────────────
|
||||
# Tag convention: nightly/<date>, beta/v*, stable/v* (ADR-003 A3)
|
||||
create-release-notes:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Generate changelog since last tag
|
||||
run: |
|
||||
PREV=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
|
||||
if [ -n "$PREV" ]; then
|
||||
git log ${PREV}..HEAD --oneline > RELEASE_NOTES.md
|
||||
else
|
||||
git log --oneline > RELEASE_NOTES.md
|
||||
fi
|
||||
- name: Update Release Notes
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
body_path: RELEASE_NOTES.md
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
80
cimery/.github/workflows/wasm.yml
vendored
Normal file
80
cimery/.github/workflows/wasm.yml
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user