Commit cbcee72
fix(ci): make the toolchain version asserts diagnosable (#30)
`CI / required` failed on #28 at **`Typecheck the Idris2 ABI`** with *no
output at all*:
```bash
idris2 --version | grep -Fx 'Idris 2, version 0.7.0'
```
The pipeline swallowed the version, `grep -Fx` matched nothing, and `set
-o pipefail`
ended the step before anything reached the log — so the failure was
undiagnosable
from CI alone.
## Fix
Capture the version, echo it, *then* assert:
- **Idris2** now matches on the release (`*"0.7.0"*`) rather than the
entire string.
The digest-pinned `idris2-pack` image reports a build suffix, so
exact-string
equality could never have matched. The version pin is still enforced.
- **Zig** keeps exact equality (`0.15.2`) but now reports what it
actually found.
Both print their version on success too, so the log records which
toolchain ran.
Follow-on from #28, which fixed the earlier failure in the same job (the
image
ships no `xz`, so `setup-zig` could not unpack its `.tar.xz`).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent e0fae51 commit cbcee72
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
51 | 60 | | |
52 | 61 | | |
53 | 62 | | |
54 | 63 | | |
55 | 64 | | |
56 | 65 | | |
57 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
58 | 69 | | |
59 | 70 | | |
60 | 71 | | |
| |||
0 commit comments