Bump ppyarrow to 14.0.1 #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Pyarrow wheel for ARM | |
on: | |
push: | |
branches: | |
- main | |
- ci/* | |
tags: | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
# We need docker experimental to pull the ARM image. | |
- name: Switch docker to experimental | |
run: | | |
docker version -f '{{.Server.Experimental}}' | |
echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json | |
sudo systemctl restart docker | |
docker version -f '{{.Server.Experimental}}' | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: crazy-max/[email protected] | |
with: | |
buildx-version: latest | |
qemu-version: latest | |
- name: Available platforms | |
run: echo ${{ steps.buildx.outputs.platforms }} | |
- name: Build Pyarrow wheels | |
run: | | |
docker buildx build -f Dockerfile \ | |
--platform linux/arm/v7 \ | |
--build-arg PYTHON_VERSION=${{ matrix.python-version }} \ | |
--load \ | |
-t pyarrow:wheel . | |
- name: Extract Wheels from image | |
run: | | |
docker run --rm -v $(pwd)/assets:/assets \ | |
--platform linux/arm/v7 \ | |
pyarrow:wheel \ | |
cp -r /build/arrow/python/dist /assets/ | |
- name: Archive artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pyarrow_wheels | |
path: ./assets/dist/ |