Skip to content

Turn one illustration into an animated 2D mesh avatar with a coding agent and a local editor

Check the native workspace in CI and mark it experimental

shinshin867556dd40f819
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 30c9d16..42a7ce3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -71,3 +71,39 @@ jobs:
- name: Test agent tools
run: uv run tools/test_agent_tools.py
+
+ native:
+ runs-on: macos-latest
+ defaults:
+ run:
+ working-directory: native
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '22'
+
+ - name: Check embedded motion data matches the JS runtime
+ run: node conformance/sync-motion-data.mjs --check
+
+ - name: Set up Rust
+ uses: dtolnay/rust-toolchain@stable
+ with:
+ components: clippy, rustfmt
+
+ - name: Cache Cargo build
+ uses: Swatinem/rust-cache@v2
+ with:
+ workspaces: native
+
+ - name: Check formatting
+ run: cargo fmt --all --check
+
+ - name: Lint
+ run: cargo clippy --all-targets -- -D warnings
+
+ - name: Run tests
+ run: cargo test
diff --git a/native/README.ja.md b/native/README.ja.md
index f3a2cff..69d3278 100644
--- a/native/README.ja.md
+++ b/native/README.ja.md
@@ -2,6 +2,9 @@
[English](README.md) · [简体中文](README.zh.md)
+> **実験的な機能です。** ネイティブ版のランタイムは開発中で、パッケージとしては公開していません。
+> API、操作方法、ファイルの保存場所は予告なく変わることがあります。基準となる実装は `packages/runtime` の JavaScript 版です。
+
Rust 版のランタイムは、JavaScript 版と同じ `.mavatar` ファイルとビルド済みプロジェクトフォルダを読み込みます。
透明なデスクトップアバターと PNG レンダラーが入っています。デスクトップ版の主な対象は Metal を使う macOS です。
diff --git a/native/README.md b/native/README.md
index e159ba5..4803e65 100644
--- a/native/README.md
+++ b/native/README.md
@@ -2,6 +2,10 @@
[日本語](README.ja.md) · [简体中文](README.zh.md)
+> **Experimental.** The native runtime is a work in progress. It is not published
+> as a package, and its API, controls and file locations may change without notice.
+> The JavaScript runtime in `packages/runtime` remains the reference implementation.
+
The Rust runtime loads the same `.mavatar` files and built project folders as the
JavaScript runtime. It includes a transparent desktop avatar and a PNG renderer.
The primary desktop target is macOS with Metal.
diff --git a/native/README.zh.md b/native/README.zh.md
index 38e54c7..fd52d08 100644
--- a/native/README.zh.md
+++ b/native/README.zh.md
@@ -2,6 +2,9 @@
[English](README.md) · [日本語](README.ja.md)
+> **实验性功能。** 原生运行时仍在开发中,尚未作为软件包发布。
+> API、操作方式和文件保存位置可能会在不另行通知的情况下变更。参考实现仍是 `packages/runtime` 中的 JavaScript 运行时。
+
Rust 运行时可以加载与 JavaScript 运行时相同的 `.mavatar` 文件和已构建的项目文件夹。
其中包含一个透明的桌面虚拟形象程序和一个 PNG 渲染器。桌面端的主要目标平台是使用 Metal 的 macOS。