Skip to content

Commit 9c33f00

Browse files
ci+licence: fix e2e Zig toolchain + standalone build + trustfile SPDX (#149)
Fixes the E2E/Bench Zig toolchain (deprecated goto-bus-stop/setup-zig@v2.2.1 + Zig 0.15.0 -> mlugg/setup-zig@v1 + 0.15.2, matching build.zig.zon) and points the E2E/Bench jobs at build_standalone.zig (pure-Zig FFI surface), so they no longer require the private nextgen-languages/language-bridges path dependency that CI cannot fetch. Also sets bindings/rust/fuzz/README.adoc SPDX to MPL-2.0 (was CC-BY-4.0), fixing the Enforce Trustfile Policies check. E2E, Bench, and Enforce Trustfile Policies all green. The remaining governance / Language / package anti-pattern policy failure is pre-existing (hyperpolymath/standards rsr-antipattern.yml) and out of scope here.
1 parent c54d0c3 commit 9c33f00

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,22 @@ jobs:
4343
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
4444

4545
- name: Install Zig
46-
uses: goto-bus-stop/setup-zig@abea47f85e598557f500fa1fd2ab7464fcb39406 # v2.2.1
46+
uses: mlugg/setup-zig@e7d1537c378b83b8049f65dda471d87a2f7b2df2 # v1
4747
with:
48-
version: 0.15.0
48+
version: '0.15.2'
4949

50-
- name: Build FFI
51-
run: cd ffi/zig && zig build
50+
# Build the standalone pure-Zig FFI surface (src/main.zig only) -- no
51+
# Idris2 RefC / idris2_zig_ffi dependency. The full Idris->RefC->Zig
52+
# pipeline needs the private nextgen-languages/language-bridges repo,
53+
# which CI cannot fetch as a path dependency; see PR #149.
54+
- name: Build FFI (standalone Zig surface)
55+
run: cd ffi/zig && zig build --build-file build_standalone.zig
5256

53-
- name: Run FFI integration tests
54-
run: cd ffi/zig && zig build test
57+
- name: Run FFI tests (standalone)
58+
run: cd ffi/zig && zig build test --build-file build_standalone.zig
5559

5660
- name: Verify library output
57-
run: ls -la ffi/zig/zig-out/lib/libproven.* || echo "Library output check"
61+
run: ls -la ffi/zig/zig-out/lib/libproven_ffi.* || echo "Library output check"
5862

5963
safety-aspects:
6064
name: Aspect — Safety Invariants
@@ -154,12 +158,12 @@ jobs:
154158
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
155159

156160
- name: Install Zig
157-
uses: goto-bus-stop/setup-zig@abea47f85e598557f500fa1fd2ab7464fcb39406 # v2.2.1
161+
uses: mlugg/setup-zig@e7d1537c378b83b8049f65dda471d87a2f7b2df2 # v1
158162
with:
159-
version: 0.15.0
163+
version: '0.15.2'
160164

161165
- name: Build and bench FFI
162-
run: cd ffi/zig && zig build bench 2>&1 | tee /tmp/bench-results.txt || echo "No bench target yet"
166+
run: cd ffi/zig && zig build bench --build-file build_standalone.zig 2>&1 | tee /tmp/bench-results.txt || echo "No bench target yet"
163167

164168
- name: Upload benchmark results
165169
if: always()

bindings/rust/fuzz/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: CC-BY-4.0
1+
// SPDX-License-Identifier: MPL-2.0
22
= Cargo-fuzz harness for proven Rust bindings
33

44
== What

0 commit comments

Comments
 (0)