Skip to content

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.

@mh-northlander mh-northlander self-requested a review September 17, 2024 05:23
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.

target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- 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