Skip to content

ci(gossamer): build Ephapax toolchain from source at v1.0.0 - #181

Merged
hyperpolymath merged 2 commits into
mainfrom
claude/ephapax-toolchain-ci
Apr 22, 2026
Merged

hyperpolymath merged 2 commits into
mainfrom
claude/ephapax-toolchain-ci

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Closes the last of the five #177 sub-blockers (Ephapax toolchain availability in CI).

The old workflow was a dry-run scaffold that printed line counts and bailed because no setup-eph action exists upstream. This replaces it with a real build:

  • Clone hyperpolymath/ephapax at v1.0.0 (commit c14c3e92).
  • Install Rust (stable, wasm32-unknown-unknown target) + just.
  • cargo build --release --workspace.
  • Cache the full build keyed on the pinned Ephapax SHA — subsequent runs are seconds, not minutes.
  • Probe for a .eph → .wasm compile path. v1.0.0 ships ephapax-cli compile-sexpr (stage 2) and an Idris2 parser (stage 1) but no CLI subcommand that chains them. The probe looks for just compile-affine, ephapax-cli compile-eph, and ephapax-cli compile-affine; when any ships upstream, the workflow starts compiling automatically — no further Hypatia change needed.

The compile step uses continue-on-error so missing the subcommand doesn't fail the job. The toolchain-build step is strict (fails if ephapax-cli doesn't build). The wasm upload step is conditional on the compile step actually producing a file.

Summary step writes a clear status block to $GITHUB_STEP_SUMMARY so the reason a wasm artifact is or isn't present is visible without scraping logs.

Workflow-linter checks (SPDX header, top-level permissions, SHA-pin on every uses: line) all pass locally. YAML parses clean.

README updated to replace the "awaits toolchain" caveat with the actual Ephapax v1.0.0 build recipe.

claude and others added 2 commits April 22, 2026 06:39
Closes the last of the five #177 sub-blockers (Ephapax toolchain
availability in CI).

The old workflow was a dry-run scaffold that printed line counts and
bailed because no setup-eph action exists upstream. This replaces it
with a real build:

* Clone hyperpolymath/ephapax at v1.0.0 (commit c14c3e92).
* Install Rust (stable, wasm32-unknown-unknown target) + just.
* cargo build --release --workspace.
* Cache the full build keyed on the pinned Ephapax SHA — subsequent
  runs are seconds, not minutes.
* Probe for a .eph → .wasm compile path. v1.0.0 ships
  `ephapax-cli compile-sexpr` (stage 2) and an Idris2 parser
  (stage 1) but no CLI subcommand that chains them. The probe looks
  for `just compile-affine`, `ephapax-cli compile-eph`, and
  `ephapax-cli compile-affine`; when any ships upstream, the workflow
  starts compiling automatically — no further Hypatia change needed.

The compile step uses continue-on-error so missing the subcommand
doesn't fail the job. The toolchain-build step is strict (fails if
ephapax-cli doesn't build). The wasm upload step is conditional on
the compile step actually producing a file.

Summary step writes a clear status block to $GITHUB_STEP_SUMMARY so
the reason a wasm artifact is or isn't present is visible without
scraping logs.

Workflow-linter checks (SPDX header, top-level permissions, SHA-pin
on every uses: line) all pass locally. YAML parses clean.

README updated to replace the "awaits toolchain" caveat with the
actual Ephapax v1.0.0 build recipe.
@hyperpolymath
hyperpolymath merged commit 3112b4c into main Apr 22, 2026
19 of 27 checks passed
@hyperpolymath
hyperpolymath deleted the claude/ephapax-toolchain-ci branch April 22, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants