3 ms·
Could you do a future write up on the whole process of how you got Github actions to cross compile to different platforms? That sounds very fascinating.
by tmaly 3y ago
Could you do a future write up on the whole process of how you got Github actions to cross compile to different platforms?
That sounds very fascinating.
- appplication 3y agoLook pretty inspectable in the .github folder? I’m not 100% sure how actions work though so maybe there’s something critical missing.
- eigenvalue 3y agoYeah, like the other commenter said, everything is in this file here: https://github.com/Dicklesworthstone/fast_vector_similarity/blob/main/.github/workflows/build-wheels.yml https://github.com/Dicklesworthstone/fast_vector_similarity/... If you also make your project using Rust and Maturin, you can literally just copy and paste that into your project because it's totally generic, and if the repo is public, GitHub will just run it all for you for free. The only thing is you need to create an account on PyPi (pip) and add 2-Factor Auth so you can generate an API key. Then you go into the repo settings and go to secrets, and create a Github Actions secret with the name PYPI_API_TOKEN and make the value your PyPi token. That's it! It will not only compile all the wheels for you but even upload the project to PyPi for you using the settings found in your pyproject.toml file, like this: https://github.com/Dicklesworthstone/fast_vector_similarity/blob/main/pyproject.toml https://github.com/Dicklesworthstone/fast_vector_similarity/...