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:
50
.github/workflows/selfhost-bootstrap.yml
vendored
Normal file
50
.github/workflows/selfhost-bootstrap.yml
vendored
Normal 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
|
||||
|
||||
57
.github/workflows/selfhost-exe-first.yml
vendored
Normal file
57
.github/workflows/selfhost-exe-first.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user