Skip to content

fix(ci): use vendored openssl for linux-arm64 cross-compilation#36

Merged
sonesuke merged 4 commits intomainfrom
fix/ci-vendored-openssl
Feb 22, 2026
Merged

fix(ci): use vendored openssl for linux-arm64 cross-compilation#36
sonesuke merged 4 commits intomainfrom
fix/ci-vendored-openssl

Conversation

@sonesuke
Copy link
Copy Markdown
Owner

Summary

Fix linux-arm64 cross-compilation in CI by using vendored OpenSSL.

Problem

The previous attempt to install ARM64 OpenSSL libraries via Cross.toml pre-build script failed because:

  • GitHub Actions runners are x86_64
  • ARM64 packages cannot be executed on x86_64 (Exec format error)

Solution

Use openssl-sys with the vendored feature, which compiles OpenSSL from source instead of relying on system libraries. This:

  • ✅ Works with cross-compilation
  • ✅ No system OpenSSL dependencies
  • ✅ Simplifies Cross.toml (no pre-build script needed)

Changes

  • Add openssl-sys with vendored feature to Cargo.toml
  • Remove pre-build script from Cross.toml

🤖 Generated with Claude Code

claude and others added 4 commits February 22, 2026 22:56
Remove pre-build script from Cross.toml and use openssl-sys vendored
feature instead. This avoids the need to install ARM64 OpenSSL libraries
on the x86_64 GitHub Actions runner.

Changes:
- Add openssl-sys with vendored feature to Cargo.toml
- Simplify Cross.toml (remove pre-build script)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@sonesuke sonesuke merged commit be90264 into main Feb 22, 2026
4 checks passed
@sonesuke sonesuke deleted the fix/ci-vendored-openssl branch February 22, 2026 14:19
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.

2 participants