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 wheel build for the aarch64 architecture in Github actions #272

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

lafeuil
Copy link

@lafeuil lafeuil commented Sep 16, 2024

Add in the Build Linux Python Wheels (+PGO) job of the Python Packages Github actions workflow, a new arch matrix variable to build the wheel on the aarch64 architecture.

The wheel already builds fine on the aarch64 architecture in local.

This PR fixes the #220 issue.

I didn't test this new configuration in the Github workflow because I don't know how to test it.

@@ -56,6 +59,7 @@ jobs:

- uses: eiennohito/gha-manylinux-build@master
with:
arch: ${{ matrix.arch }}
script: python/build-wheels-manylinux-pgo.sh

- uses: actions/upload-artifact@v4
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upload-artifact@v4 does not allow uploading multiple times with same name.
Add matrix parameter to name input (it must match artifact-* pattern in l.120).

Also, we merge contents of each artifacts with download-artifact@v4 in upload-to-pypi job.
The names of built files should be changed not to overwrite other architecture's.

@@ -56,6 +59,7 @@ jobs:

- uses: eiennohito/gha-manylinux-build@master
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eiennohito/gha-manylinux-build does not have arch input.
I guess we need a different method to build aarch64 wheel.

Copy link
Collaborator

@eiennohito eiennohito Sep 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can update the build definition if somebody makes a PR for it. Or you can clone the repo to your user and use the clone definiton.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants