Skip to content

Commit

Permalink
more os architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavsuku-db committed Jul 30, 2024
1 parent df375ce commit 4a7ccc6
Showing 1 changed file with 42 additions and 5 deletions.
47 changes: 42 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,19 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.8]
python-version: ["3.8", "3.9", "3.10", "3.11"]
arch:
- x86_64
- aarch64
- armv7
- s390x
- ppc64le
- x86
include:
- os: macos-latest
arch: x86_64
- os: macos-latest
arch: arm64

steps:
- uses: actions/checkout@v2
Expand All @@ -34,15 +46,40 @@ jobs:
- name: Install maturin
run: pip install maturin

- name: Build wheel
- name: Install cross and QEMU (Linux)
if: runner.os == 'Linux'
run: |
pwd
cargo install cross
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Build wheel (x86_64 macOS)
if: matrix.os == 'macos-latest' && matrix.arch == 'x86_64'
run: |
rustup target add x86_64-apple-darwin
cd python/delta-kernel-python
maturin build --release --target x86_64-apple-darwin
shell: bash

- name: Build wheel (ARM macOS)
if: matrix.os == 'macos-latest' && matrix.arch == 'arm64'
run: |
rustup target add aarch64-apple-darwin
cd python/delta-kernel-python
maturin build --release --target aarch64-apple-darwin
shell: bash


- name: Build wheel (Linux)
if: runner.os == 'Linux'
run: |
rustup target add ${{ matrix.arch }}
cd python/delta-kernel-python
maturin build --release
cross build --release --target ${{ matrix.arch }}-unknown-linux-gnu
shell: bash

- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: python/delta-kernel-python/target/wheels/*.whl
path: python/delta-kernel-python/target/${{ matrix.arch }}-unknown-linux-gnu/release/*.whl

0 comments on commit 4a7ccc6

Please sign in to comment.