Skip to content

Commit a1f89ee

Browse files
committed
🔧 Fix ARM64 cross-compilation with OpenSSL static linking
Resolve OpenSSL cross-compilation issues for ARM64 Linux builds - Add --no-install-recommends flag to apt-get install for cleaner dependency management - Set OPENSSL_STATIC=1 to force static linking of OpenSSL - Set OPENSSL_VENDOR=1 to use vendored OpenSSL for cross-compilation - Add descriptive comments explaining ARM64 setup steps This change eliminates OpenSSL cross-compilation complexity that was causing ARM64 build failures by forcing the use of vendored OpenSSL instead of system libraries.
1 parent 00235a3 commit a1f89ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/cicd.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,13 @@ jobs:
185185
if: matrix.target == 'aarch64-unknown-linux-gnu'
186186
run: |
187187
sudo apt-get update
188-
sudo apt-get install -y gcc-aarch64-linux-gnu
188+
# Install cross-compiler for ARM64
189+
sudo apt-get install -y --no-install-recommends gcc-aarch64-linux-gnu
189190
echo "CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
190191
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
192+
# Use vendored OpenSSL to avoid cross-compilation complexity
193+
echo "OPENSSL_STATIC=1" >> $GITHUB_ENV
194+
echo "OPENSSL_VENDOR=1" >> $GITHUB_ENV
191195
192196
- name: 📦 Rust cache
193197
uses: Swatinem/rust-cache@v2

0 commit comments

Comments
 (0)