Skip to content

Commit bb0c231

Browse files
committed
.github/workflows: ...
1 parent c3c0ea3 commit bb0c231

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/linux.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
2+
name: Wheels on Linux
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
TALIB_C_VER: 0.6.4
8+
TALIB_PY_VER: ${{ github.ref_name }}
9+
PIP_NO_VERIFY: 0
10+
PIP_VERBOSE: 1
11+
CIBW_BEFORE_BUILD: pip install -U setuptools Cython wheel meson-python ninja && pip install -U numpy
12+
CIBW_TEST_REQUIRES: pytest pandas maturin polars
13+
CIBW_SKIP: "pp*"
14+
15+
jobs:
16+
build_manylinux_x86_64:
17+
name: Build ManyLinux x86_64 wheels
18+
strategy:
19+
matrix:
20+
os: ["ubuntu-22.04"]
21+
runs-on: ${{ matrix.os }}
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
- name: Build wheels
26+
uses: pypa/cibuildwheel@v2.23.3
27+
env:
28+
CIBW_BUILD_ALL: |
29+
bash ./tools/build_talib_linux.sh
30+
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
31+
CIBW_SKIP: "pp* cp*-musllinux*"
32+
CIBW_TEST_COMMAND: >
33+
cd .. &&
34+
pytest -k "not RSI and not threading" {project}/tests
35+
CIBW_ARCHS_LINUX: x86_64
36+
CIBW_BUILD_FRONTEND: build
37+
CIBW_ENVIRONMENT_LINUX : >
38+
TA_LIBRARY_PATH="ta-lib-install/lib"
39+
TA_INCLUDE_PATH="ta-lib-install/include"
40+
PIP_NO_BUILD_ISOLATION=false
41+
CIBW_REPAIR_WHEEL_COMMAND_LINUX: |
42+
export LD_LIBRARY_PATH="/project/ta-lib-install/lib:$LD_LIBRARY_PATH"
43+
auditwheel repair -w {dest_dir} {wheel}
44+
- name: Set wheel name
45+
run: |
46+
echo "WHEEL_NAME=ta_lib-${{env.TALIB_PY_VER}}-manylinux_x86_64" >> $GITHUB_ENV
47+
- name: Upload wheels
48+
uses: actions/upload-artifact@v4
49+
with:
50+
path: ./wheelhouse/*.whl
51+
name: ${{ env.WHEEL_NAME }}
52+

0 commit comments

Comments
 (0)