Skip to content

Commit e043b19

Browse files
Fix aarch64 Linux builds with QEMU, nightly Rust, and cross configuration
- Add Docker Buildx and QEMU setup for ARM64 emulation - Switch to nightly Rust toolchain (required for Rust 1.88.0) - Configure Cross.toml with ARM64 package installation and library paths - Set CROSS_NO_WARNINGS=0 to ignore post-install script warnings - Add CMake environment variables for Kafka builds to find ARM64 libs
1 parent 8442969 commit e043b19

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/build.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ jobs:
6262

6363
- name: Build with cross
6464
if: matrix.use_cross
65+
env:
66+
CROSS_NO_WARNINGS: "0"
6567
run: cross build --target ${{ matrix.target }} --release
6668

6769
- name: Build native
@@ -201,13 +203,15 @@ jobs:
201203
env:
202204
LIBRDKAFKA_SSL_VENDORED: "1"
203205
PKG_CONFIG_ALLOW_CROSS: "1"
206+
CROSS_NO_WARNINGS: "0"
207+
RUST_BACKTRACE: "1"
204208
ZLIB_INCLUDE_DIR: "/usr/include/aarch64-linux-gnu"
205209
ZLIB_LIBRARY: "/usr/lib/aarch64-linux-gnu/libz.so"
206-
OPENSSL_DIR: "/usr"
207-
OPENSSL_LIB_DIR: "/usr/lib/aarch64-linux-gnu"
210+
OPENSSL_ROOT_DIR: "/usr"
208211
OPENSSL_INCLUDE_DIR: "/usr/include/aarch64-linux-gnu"
209-
CROSS_NO_WARNINGS: "0"
210-
RUST_BACKTRACE: "1"
212+
OPENSSL_CRYPTO_LIBRARY: "/usr/lib/aarch64-linux-gnu/libcrypto.so"
213+
OPENSSL_SSL_LIBRARY: "/usr/lib/aarch64-linux-gnu/libssl.so"
214+
PKG_CONFIG_PATH: "/usr/lib/aarch64-linux-gnu/pkgconfig"
211215
run: cross build --target ${{ matrix.target }} --features kafka --release --verbose
212216

213217
- name: Build with Kafka (native)

Cross.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ pre-build = [
1010
passthrough = [
1111
"LIBRDKAFKA_SSL_VENDORED",
1212
"PKG_CONFIG_ALLOW_CROSS",
13+
"CROSS_NO_WARNINGS",
14+
"RUST_BACKTRACE",
1315
"ZLIB_INCLUDE_DIR",
1416
"ZLIB_LIBRARY",
15-
"OPENSSL_DIR",
16-
"OPENSSL_LIB_DIR",
17+
"OPENSSL_ROOT_DIR",
1718
"OPENSSL_INCLUDE_DIR",
18-
"CROSS_NO_WARNINGS",
19-
"RUST_BACKTRACE",
19+
"OPENSSL_CRYPTO_LIBRARY",
20+
"OPENSSL_SSL_LIBRARY",
21+
"PKG_CONFIG_PATH",
2022
]
2123
volumes = [
2224
"/usr/lib/aarch64-linux-gnu:/usr/lib/aarch64-linux-gnu:ro",

0 commit comments

Comments
 (0)