Skip to content

Add native binary validation script#247

Merged
hyperxpro merged 2 commits into
mainfrom
add-binary-validation
Mar 29, 2026
Merged

Add native binary validation script#247
hyperxpro merged 2 commits into
mainfrom
add-binary-validation

Conversation

@hyperxpro

Copy link
Copy Markdown
Owner

Motivation:
The release pipeline manually copied compiled native binaries with no validation. This failed silently in v1.21.0 (#246, missing macOS dylibs) and v1.19.0 (#226, wrong-architecture Windows DLLs).

Modification:

  • Pin macOS runners to macos-15 and fix Maven profile activation for ARM64
  • Add validate-native-binaries.sh that copies binaries from build artifacts and validates each one using readelf, objdump, and raw Mach-O header inspection
  • Add Validate-Native-Binaries CI job that runs on every push/PR, not just releases

Result:
The pipeline now fails hard if any of the 10 platform binaries are missing, empty, wrong format, or wrong architecture.
Fixes #246

@hyperxpro hyperxpro merged commit 91bc58b into main Mar 29, 2026
32 checks passed
@hyperxpro hyperxpro deleted the add-binary-validation branch March 29, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Native macOS libraries (osx-aarch64 and osx-x86_64) missing from v1.21.0 JARs on Maven Central

1 participant