Build fully static amd64 + arm64 Linux binaries for Rust projects with vendored OpenSSL and ring -- no flaky toolchain servers needed.
Cross-compiling Rust to aarch64-unknown-linux-musl on x86_64 GitHub Actions runners is painful:
| Approach | Problem |
|---|
Build fully static amd64 + arm64 Linux binaries for Rust projects with vendored OpenSSL and ring -- no flaky toolchain servers needed.
Cross-compiling Rust to aarch64-unknown-linux-musl on x86_64 GitHub Actions runners is painful:
| Approach | Problem |
|---|
With vendored OpenSSL + ring (rustls) -- a complete working guide.
Cross-compiling Rust projects targeting aarch64-unknown-linux-musl on x86_64 GitHub Actions runners fails when:
gcc-aarch64-linux-gnu (glibc cross-compiler) with musl target -- vendored OpenSSL gets compiled against glibc headers, introducing symbols like __memcpy_chk, __memset_chk, __vfprintf_chk that don't exist in musl.| #!/bin/bash | |
| # Function to display usage information | |
| usage() { | |
| echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]" | |
| exit 1 | |
| } | |
| # Check if at least one argument (input file) is provided | |
| if [ $# -lt 1 ]; then |