mirror of
https://github.com/allaunthefox/SilverSight.git
synced 2026-07-31 01:25:21 +00:00
fix: Q16 roundtrip CI — build C lib via lake, run executable
This commit is contained in:
parent
a6b4b46e90
commit
572a19aef6
1 changed files with 8 additions and 3 deletions
11
.github/workflows/q16-roundtrip.yml
vendored
11
.github/workflows/q16-roundtrip.yml
vendored
|
|
@ -6,6 +6,11 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build C library
|
||||
run: make -f CBridge/Makefile
|
||||
- name: Run roundtrip test
|
||||
run: python3 Tests/q16_roundtrip_test.py
|
||||
run: gcc -shared -fPIC -O2 -o c/libq16.so c/q16_canonical.c
|
||||
- name: Build and run roundtrip
|
||||
run: |
|
||||
lake build q16-roundtrip
|
||||
lake exe q16-roundtrip 2>/dev/null | python3 -c 'import json,sys; d=json.load(sys.stdin); assert d["ok"], f"{d[\"failed\"]} failures"; print(f"OK: {d[\"passed\"]}/{d[\"total\"]} passed (0 failed)")'
|
||||
- name: Verify C/Lean agreement
|
||||
run: |
|
||||
lake exe q16-roundtrip 2>/dev/null | python3 -c 'import json,sys; d=json.load(sys.stdin); print(f"C/Lean roundtrip: {d[\"passed\"]}/{d[\"total\"]} consistent")'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue