Repository navigation
ci(gossamer): build Ephapax toolchain from source at v1.0.0 - #181
Merged
Merged
Conversation
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.
2 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
ephapax-cli compile-sexpr(stage 2) and an Idris2 parser (stage 1) but no CLI subcommand that chains them. The probe looks forjust compile-affine,ephapax-cli compile-eph, andephapax-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.