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 4e4be8b commit 0412e79
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
build:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
Expand All @@ -23,10 +23,10 @@ jobs:
arch: arm64
- os: ubuntu-latest
arch: x86_64
- os: windows-latest
arch: x86_64
- os: ubuntu-latest
arch: aarch64
- os: windows-latest
arch: x86_64

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

- name: Set up QEMU for cross-compilation
if: matrix.os == 'ubuntu-latest' && matrix.arch == 'aarch64'
run: |
sudo apt-get update
sudo apt-get install -y qemu binfmt-support qemu-user-static
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Build wheel using manylinux2014 (AARCH64 Linux)
if: matrix.os == 'ubuntu-latest' && matrix.arch == 'aarch64'
run: |
docker run --rm -e PLAT=aarch64 \
-v $(pwd):/io quay.io/pypa/manylinux2014_aarch64 \
/opt/python/cp38-cp38/bin/python -m pip wheel /io -w /io/wheelhouse/
shell: bash

- name: Build wheel (x86_64 macOS)
if: matrix.os == 'macos-latest' && matrix.arch == 'x86_64'
run: |
Expand Down Expand Up @@ -76,13 +91,6 @@ jobs:
maturin build --release
shell: bash

- name: Build wheel (aarch64 Linux)
if: matrix.os == 'ubuntu-latest' && matrix.arch == 'aarch64'
run: |
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux2014_aarch64 \
/bin/bash -c "cd /io/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 0412e79

Please sign in to comment.