- 4つ目の実行方式としてAOT(Ahead-of-Time)コンパイルを文書化 - MIR→WASM→.cwasm のコンパイルパイプラインを説明 - wasm-backend featureでのビルド方法を明記 - 現在の実装状況(完全なスタンドアロン実行ファイルはTODO)を記載 - CLAUDE.mdのWASM説明も3種類(Rust→WASM、Nyash→WASM、Nyash→AOT)に更新 - CURRENT_TASK.mdにPhase 10.9/10.10の完了項目を追加 ChatGPT5さんのAOT試行に対応した適切なドキュメント配置を実施 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
86 lines
2.1 KiB
YAML
86 lines
2.1 KiB
YAML
name: Smoke (Phase 10.10)
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'src/**'
|
|
- 'examples/**'
|
|
- 'tools/**'
|
|
- 'Cargo.toml'
|
|
- 'Cargo.lock'
|
|
- 'docs/**'
|
|
- '.github/workflows/smoke.yml'
|
|
pull_request:
|
|
paths:
|
|
- 'src/**'
|
|
- 'examples/**'
|
|
- 'tools/**'
|
|
- 'Cargo.toml'
|
|
- 'Cargo.lock'
|
|
- 'docs/**'
|
|
|
|
jobs:
|
|
smoke:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
# Disable external plugins to keep CI deterministic
|
|
NYASH_DISABLE_PLUGINS: '1'
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Rust (stable)
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Cache cargo registry and build
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.cargo/registry
|
|
~/.cargo/git
|
|
target
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-cargo-
|
|
|
|
- name: Run smoke script
|
|
run: bash tools/smoke_phase_10_10.sh
|
|
|
|
smoke-compile-events:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
NYASH_DISABLE_PLUGINS: '1'
|
|
NYASH_JIT_EVENTS_COMPILE: '1'
|
|
NYASH_JIT_HOSTCALL: '1'
|
|
NYASH_JIT_EVENTS_PATH: events.jsonl
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Rust (stable)
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Cache cargo registry and build
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.cargo/registry
|
|
~/.cargo/git
|
|
target
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-cargo-
|
|
|
|
- name: Build
|
|
run: cargo build --release -j2 --features cranelift-jit
|
|
|
|
- name: Run HH example (compile events)
|
|
run: ./target/release/nyash --backend vm examples/jit_map_get_param_hh.nyash
|
|
|
|
- name: Verify events contain phase:lower
|
|
run: |
|
|
test -f events.jsonl
|
|
grep -q '"phase":"lower"' events.jsonl
|