Skip to content

Commit

Permalink
adding arm on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavsuku-db committed Jul 30, 2024
1 parent dd0d6d6 commit 8bbbf34
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,21 @@ jobs:
- name: Build wheel (Linux arm64)
if: matrix.os == 'ubuntu-latest' && matrix.arch == 'arm64'
run: |
sudo dpkg --add-architecture arm64
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu
sudo apt-get install -y libssl-dev:arm64
sudo apt-get install -y libssl-dev:arm64 libc6-dev-arm64-cross
rustup target add aarch64-unknown-linux-gnu
cd python/delta-kernel-python
export OPENSSL_DIR=/usr/include/aarch64-linux-gnu
export OPENSSL_LIB_DIR=/usr/lib/aarch64-linux-gnu
export AARCH64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR=/usr/lib/aarch64-linux-gnu
export AARCH64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR=/usr/include/aarch64-linux-gnu
export OPENSSL_DIR=/usr/aarch64-linux-gnu
export OPENSSL_LIB_DIR=/usr/aarch64-linux-gnu/lib
export OPENSSL_INCLUDE_DIR=/usr/aarch64-linux-gnu/include
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc
export CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc
export CXX_aarch64_unknown_linux_gnu=aarch64-linux-gnu-g++
PKG_CONFIG_PATH="/usr/lib/aarch64-linux-gnu/pkgconfig" \
PKG_CONFIG_ALLOW_CROSS=1 \
OPENSSL_STATIC=1 \
maturin build --release --target aarch64-unknown-linux-gnu
shell: bash

Expand Down

0 comments on commit 8bbbf34

Please sign in to comment.