Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: 'Zig Hexadeca Check'
description: 'Checks that Zig FFI implementations adhere to the unified-hexadeca-api and are pure.'
name: 'Zig UnifiedApiAdapter Check'
description: 'Checks that Zig FFI implementations adhere to the unified-api-adapter and are pure.'
runs:
using: 'composite'
steps:
- name: Run Zig Hexadeca Check
- name: Run Zig UnifiedApiAdapter Check
shell: bash
run: |
echo "Validating Zig Hexadeca API..."
echo "Validating Zig UnifiedApiAdapter API..."
if find . -name "*.zig" | grep -q .; then
# Ensure it doesn't use standard library io or std.fs directly for FFI
if git grep -E 'std\.fs|std\.io' -- '*.zig'; then
echo "::error::Zig FFI modules contain prohibited side-effects (std.fs/std.io). Must use unified-hexadeca-api."
echo "::error::Zig FFI modules contain prohibited side-effects (std.fs/std.io). Must use unified-api-adapter."
exit 1
fi
echo "Zig Hexadeca API check passed."
echo "Zig UnifiedApiAdapter API check passed."
else
echo "No Zig files found. Skipping check."
fi
Loading