ta-lib-python
ta-lib-python copied to clipboard
Add GitHub Actions workflow for automated Python wheel builds across multiple platforms
I am trying to build wheels TA-Lib across multiple platforms and architectures with GitHub Actions workflow. The workflow is triggered when a new tag starting with v* is pushed.
The workflow builds wheels for:
- Linux: ManyLinux (x86_64) and MuslLinux (x86_64)
- Windows: AMD64 and x86
- macOS: x86_64 and arm64
PR Details:
- add
build_wheel_windows.cmd,build_wheel_linux.shandbuild_wheel_linux.shunder the tools folder - add
build.ymlunder the workflow using pypa/cibuildwheel to handle the wheel-building process.
Currently, the workflow uploads the built wheels as GitHub artifacts. The PyPI Uploading or Github Release Uploading steps are not yet implemented.
Additionally, since the project already has a test workflow, I skipped all tests to speed up the build process (running tests would take five to six hours to build wheels for all platforms). One of the reasons is that many platforms require building the test dependency (such as polars and numpy) from source.