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

Linux wheel for aarch64 and armv7 architecture ? #28

Open
dulfox opened this issue Jan 9, 2022 · 8 comments · May be fixed by #45
Open

Linux wheel for aarch64 and armv7 architecture ? #28

dulfox opened this issue Jan 9, 2022 · 8 comments · May be fixed by #45

Comments

@dulfox
Copy link

dulfox commented Jan 9, 2022

I've seen that you've provided lots of wheel package but could you please provide linux wheel for aarch64 and armv7 architecture ?

@oconnor663
Copy link
Owner

Currently all the wheels are built by GitHub Actions, in this job: https://github.com/oconnor663/blake3-py/blob/master/.github/workflows/push.yml

GitHub doesn't directly support ARM runners as far as I know (but I could be wrong), so getting additional wheels up probably requires some sort of virtualization. I'm sure something with QEMU is possible, but I don't have a ton of experience with this. Things might get a lot easier if we could use https://github.com/rust-embedded/cross directly for this, but I'm not sure.

@dulfox
Copy link
Author

dulfox commented Jan 10, 2022

It does seem that it is not as simple and straightforward as I thought.
Maybe some hope via this link: https://github.com/uraimo/run-on-arch-action
Thanks for answering anyway.

@strayer
Copy link

strayer commented Nov 17, 2022

https://github.com/pypa/cibuildwheel uses Docker and qemu to run emulated aarch64 containers to build wheels. I'm currently working on getting this to work with pytaglib and it seems to do its job (although slow, unsurprisingly).

@robd003
Copy link

robd003 commented Feb 27, 2023

I found a build service that's half the price of GitHub actions and has support for arm64 https://buildjet.com/for-github-actions/pricing

@robd003
Copy link

robd003 commented Mar 10, 2024

Great news @oconnor663 GitHub has a beta for arm64 runners!

You can sign-up here: https://resources.github.com/devops/accelerate-your-cicd-with-arm-and-gpu-runners-in-github-actions/

@ddelange
Copy link

@ddelange
Copy link

I saw you use python scripts to upload as release assets.

in constrast, pydantic uses github artifacts for uploading the wheels, and downloads them again in the publish step.

then, you can upload them as release assets and to pypi using dedicated actions (example) too. you won't need PyGithub or your python scrips anymore. 100% yml :)

this example ^ uses pypi trusted publishing (no user/pass). all you need to do is add oconnor663/blake3-py as trusted publisher here and add the permissions in the github action as per the example.

@ddelange ddelange linked a pull request Sep 23, 2024 that will close this issue
@ddelange
Copy link

ddelange commented Sep 23, 2024

opened #45, everybody here, please add your review (and test the wheels) 🙏

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 a pull request may close this issue.

5 participants