Skip to content

Commit

Permalink
mac has arm and intel, windows and linux only have intel
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavsuku-db committed Jul 30, 2024
1 parent ae8099b commit c4a0fa2
Showing 1 changed file with 3 additions and 26 deletions.
29 changes: 3 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8]
arch: [x86_64, arm64, aarch64]
arch: [x86_64, arm64]
include:
- os: macos-latest
arch: x86_64
- os: macos-latest
arch: arm64
- os: ubuntu-latest
arch: x86_64
- os: ubuntu-latest
arch: aarch64
- os: windows-latest
arch: x86_64

Expand Down Expand Up @@ -69,34 +67,13 @@ jobs:
maturin build --release
shell: powershell

- name: Build wheel (x86_64 Linux)
if: matrix.os == 'ubuntu-latest' && matrix.arch == 'x86_64'
- name: Build wheel (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
cd python/delta-kernel-python
maturin build --release
shell: bash

- name: Build wheel (aarch64 Linux)
if: matrix.os == 'ubuntu-latest' && matrix.arch == 'aarch64'
run: |
sudo apt-get install -y gcc-aarch64-linux-gnu
sudo apt-get install -y libssl-dev:arm64
export PKG_CONFIG_SYSROOT_DIR=/usr/aarch64-linux-gnu
export PKG_CONFIG_PATH=/usr/aarch64-linux-gnu/lib/pkgconfig
export OPENSSL_DIR=/usr/aarch64-linux-gnu
export OPENSSL_INCLUDE_DIR=/usr/aarch64-linux-gnu/include
export OPENSSL_LIB_DIR=/usr/aarch64-linux-gnu/lib
export PKG_CONFIG_SYSROOT_DIR=/usr/aarch64-linux-gnu
export PKG_CONFIG_PATH=/usr/aarch64-linux-gnu/lib/pkgconfig
export OPENSSL_DIR=/usr/aarch64-linux-gnu
export OPENSSL_INCLUDE_DIR=/usr/aarch64-linux-gnu/include
export OPENSSL_LIB_DIR=/usr/aarch64-linux-gnu/lib
rustup target add aarch64-unknown-linux-gnu
cd python/delta-kernel-python
maturin build --release --target aarch64-unknown-linux-gnu
shell: bash

- name: Upload wheels
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit c4a0fa2

Please sign in to comment.