Wheels on Linux #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Wheels on Linux | |
| on: | |
| workflow_dispatch: | |
| env: | |
| PIP_NO_VERIFY: 0 | |
| PIP_VERBOSE: 1 | |
| CIBW_BEFORE_BUILD: pip install -U setuptools Cython wheel meson-python ninja && pip install -U numpy | |
| CIBW_TEST_REQUIRES: pytest pandas maturin polars | |
| jobs: | |
| build_linux_arm64: | |
| name: Build Linux arm64 wheels | |
| strategy: | |
| matrix: | |
| os: ["ubuntu-22.04-arm"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Build wheels | |
| uses: pypa/[email protected] | |
| env: | |
| CIBW_BEFORE_ALL: | | |
| bash ./tools/build_talib_linux.sh | |
| CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28 | |
| CIBW_MUSLLINUX_AARCH64_IMAGE: musllinux_1_2 | |
| CIBW_TEST_SKIP: "cp*-musllinux*" | |
| CIBW_TEST_COMMAND: > | |
| cd .. && | |
| pytest -k "not RSI and not threading" {project}/tests | |
| CIBW_ARCHS_LINUX: aarch64 | |
| CIBW_BUILD_FRONTEND: build | |
| CIBW_ENVIRONMENT_LINUX : > | |
| TA_LIBRARY_PATH="ta-lib-install/lib" | |
| TA_INCLUDE_PATH="ta-lib-install/include" | |
| PIP_NO_BUILD_ISOLATION=false | |
| CIBW_REPAIR_WHEEL_COMMAND_LINUX: | | |
| export LD_LIBRARY_PATH="/project/ta-lib-install/lib:$LD_LIBRARY_PATH" | |
| auditwheel repair -w {dest_dir} {wheel} | |
| - name: Upload wheels | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: ./wheelhouse/*.whl | |
| name: "ta_lib-${{ github.ref_name }}-linux_arm64" |