docs/ci: selfhost bootstrap/exe-first workflows; add ny-llvmc scaffolding + JSON v0 schema validation; plan: unify to Nyash ABI v2 (no backwards compat)

This commit is contained in:
Selfhosting Dev
2025-09-17 20:33:19 +09:00
parent a5054a271b
commit 4ea3ca2685
56 changed files with 2275 additions and 1623 deletions

View File

@ -0,0 +1,50 @@
name: Selfhost Bootstrap Smoke
on:
push:
paths:
- 'src/**'
- 'apps/**'
- 'tools/**'
- 'docs/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/selfhost-bootstrap.yml'
pull_request:
paths:
- 'src/**'
- 'apps/**'
- 'tools/**'
- 'docs/**'
jobs:
selfhost-bootstrap:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
CARGO_TERM_COLOR: always
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: Build (release, cranelift-jit)
run: cargo build --release --features cranelift-jit -j 2
- name: Run bootstrap selfhost smoke
run: timeout -s KILL 40s bash tools/bootstrap_selfhost_smoke.sh

View File

@ -0,0 +1,57 @@
name: Selfhost EXE-first (Optional)
on:
workflow_dispatch:
schedule:
- cron: '0 7 * * *'
jobs:
selfhost-exe-first:
runs-on: ubuntu-latest
timeout-minutes: 25
env:
CARGO_TERM_COLOR: always
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: Install LLVM 18 (llvm-config-18)
run: |
sudo apt-get update
sudo apt-get install -y curl ca-certificates lsb-release wget gnupg python3-pip
curl -fsSL https://apt.llvm.org/llvm.sh -o llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 18
llvm-config-18 --version
- name: Install llvmlite (Python)
run: |
python3 -m pip install --upgrade pip
python3 -m pip install llvmlite jsonschema
- name: Build nyash (release)
run: cargo build --release -j 2
- name: ny-llvmc dummy smoke
run: |
cargo build --release -p nyash-llvm-compiler -j 2
./target/release/ny-llvmc --dummy --out /tmp/dummy.o
file /tmp/dummy.o || true
- name: Run EXE-first smoke (parser EXE + bridge)
run: timeout -s KILL 10m bash tools/exe_first_smoke.sh