Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@
```
deno lint -> deno test ┐
check -> wasm -> runtime -> demo
cli (parallel) ────────┘
```

| Workflow | Role |
|----------|------|
| `_check.yml` | `cargo shear` + `clippy` (host and wasm targets) |
| `_cli.yml` | Builds and tests the `cli/` workspace (`cargo build` + `cargo test`); on `main` pushes also publishes the release binary + `install.sh` to GitHub Pages |
| `_wasm.yml` | Builds and optimizes `compiler_lib.wasm`. On tags, attaches the `.wasm` to the GitHub Release |
| `_runtime_check.yml` | JS-side gate: `deno lint runtime/` + `deno test runtime/tests/` (Playwright + Chromium driving `createWorker` against the CDN-deployed wasm). Independent branch, runs in parallel with the Rust pipeline; only the CDN upload below blocks on it |
| `_runtime.yml` | Bundles `runtime/` + `compiler_lib.wasm` and deploys them to Cloudflare Pages |
| `_demo.yml` | Hashes `compiler_lib.wasm` into `version.json` (cache-busting) and deploys `demo/` to Cloudflare Pages |
| `cli.yml` | Standalone (not part of the pipeline above): builds and tests `cli/`; on `main` pushes also publishes the release binary + `install.sh` to GitHub Pages |

## Cloudflare Pages

Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/_cli.yml → .github/workflows/cli.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: _CLI
name: CLI

on:
workflow_call:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
build_test:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ jobs:
uses: ./.github/workflows/_check.yml
secrets: inherit

# CLI build + test (separate workspace under cli/); runs in parallel with `check`.
cli:
name: CLI
uses: ./.github/workflows/_cli.yml
secrets: inherit

# Build the release WebAssembly artifact.
wasm:
name: WebAssembly
Expand Down