Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build step to deploy-wheels.yml that builds aarch64 wheels #422

Merged
merged 1 commit into from
Sep 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/deploy-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Docker Buildx
if: matrix.os == 'ubuntu-latest'
id: buildx
uses: crazy-max/ghaction-docker-buildx@v3.3.0
with:
buildx-version: latest
qemu-version: latest


- name: Install dependencies
run: |
Expand All @@ -46,7 +54,15 @@ jobs:
if: matrix.os != 'ubuntu-latest'
run: python setup.py -q bdist_wheel

- name: Build Linux wheels
- name: Build ManyLinux2014_aarch64 wheels
if: matrix.os == 'ubuntu-latest'
run: |
docker buildx build --platform linux/arm64 \
-t ujson_aarch64 --output tmpwheelhouse -f scripts/Dockerfile_aarch64 .
mkdir -p dist
mv tmpwheelhouse/wheelhouse/*.whl dist/

- name: Build x86 Linux wheels
if: matrix.os == 'ubuntu-latest'
run: |
docker run -e PLAT=manylinux1_x86_64 -v `pwd`:/io quay.io/pypa/manylinux1_x86_64 /io/scripts/build-manylinux-wheels.sh
Expand Down
11 changes: 11 additions & 0 deletions scripts/Dockerfile_aarch64
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM quay.io/pypa/manylinux2014_aarch64 as build

ENV PLAT=manylinux2014_aarch64
RUN mkdir -p /io/
COPY . /io/
WORKDIR /io/

RUN ./scripts/build-manylinux-wheels.sh

FROM scratch as release
COPY --from=build /io/dist /wheelhouse