16
16
CIBW_SKIP : " pp*"
17
17
18
18
jobs :
19
- build_manylinux_x86_64 :
20
- name : Build ManyLinux x86_64 wheels
19
+ build_linux_x86_64 :
20
+ name : Build Linux x86_64 wheels
21
21
strategy :
22
22
matrix :
23
23
os : ["ubuntu-22.04"]
24
24
runs-on : ${{ matrix.os }}
25
25
steps :
26
26
- name : Checkout repository
27
27
uses : actions/checkout@v4
28
- - name : Install GCC and CMake
29
- run : |
30
- sudo apt-get update
31
- sudo apt-get install -y gcc g++ cmake ninja-build
32
- - name : Make script executable
33
- run : chmod +x ./tools/build_talib_linux.sh
34
- - name : Build TA-Lib C Library
35
- run : ./tools/build_talib_linux.sh
36
- shell : bash
37
28
- name : Build wheels
38
29
uses : pypa/cibuildwheel@v2.23.3
39
30
env :
31
+ CIBW_BEFORE_ALL : |
32
+ bash ./tools/build_talib_linux.sh
40
33
CIBW_MANYLINUX_X86_64_IMAGE : manylinux_2_28
41
- CIBW_SKIP : " pp* cp*-musllinux*"
34
+ CIBW_MUSLLINUX_X86_64_IMAGE : musllinux_1_2
35
+ CIBW_TEST_SKIP : " cp*-musllinux*"
42
36
CIBW_TEST_COMMAND : >
43
37
cd .. &&
44
38
pytest -k "not RSI and not threading" {project}/tests
@@ -51,14 +45,11 @@ jobs:
51
45
CIBW_REPAIR_WHEEL_COMMAND_LINUX : |
52
46
export LD_LIBRARY_PATH="/project/ta-lib-install/lib:$LD_LIBRARY_PATH"
53
47
auditwheel repair -w {dest_dir} {wheel}
54
- - name : Set wheel name
55
- run : |
56
- echo "WHEEL_NAME=ta_lib-${{env.TALIB_PY_VER}}-manylinux_x86_64" >> $GITHUB_ENV
57
48
- name : Upload wheels
58
49
uses : actions/upload-artifact@v4
59
50
with :
60
51
path : ./wheelhouse/*.whl
61
- name : ${{ env.WHEEL_NAME }}
52
+ name : " ta_lib- ${{ github.ref_name }}-linux_x86_64 "
62
53
build_manylinux_arm64 :
63
54
name : Build ManyLinux arm64 wheels
64
55
strategy :
@@ -102,61 +93,6 @@ jobs:
102
93
with :
103
94
path : ./wheelhouse/*.whl
104
95
name : ${{ env.WHEEL_NAME }}
105
- build_musllinux_x86_64 :
106
- name : Build MuslLinux x86_64 wheels
107
- strategy :
108
- matrix :
109
- os : ["ubuntu-22.04"]
110
- runs-on : ${{ matrix.os }}
111
- steps :
112
- - name : Checkout repository
113
- uses : actions/checkout@v4
114
- - name : Setup latest Alpine Linux
115
- uses : jirutka/setup-alpine@v1
116
- with :
117
- branch : v3.15
118
- packages : >
119
- build-base
120
- bash
121
- curl
122
- unzip
123
- gcc
124
- g++
125
- cmake
126
- ninja
127
- rust
128
- volumes : ${{ github.workspace }}:/project
129
- - name : Make script executable
130
- run : chmod +x ./tools/build_talib_linux.sh
131
- - name : Build TA-Lib C Library
132
- run : ./tools/build_talib_linux.sh
133
- shell : alpine.sh {0}
134
- - name : Build wheels
135
- uses : pypa/cibuildwheel@v2.23.3
136
- env :
137
- CIBW_MUSLLINUX_X86_64_IMAGE : musllinux_1_2
138
- CIBW_TEST_SKIP : " cp*"
139
- CIBW_SKIP : " pp* cp*-manylinux*"
140
- CIBW_TEST_COMMAND : >
141
- cd .. &&
142
- pytest -k "not RSI and not threading" {project}/tests
143
- CIBW_ARCHS_LINUX : x86_64
144
- CIBW_BUILD_FRONTEND : build
145
- CIBW_ENVIRONMENT_LINUX : >
146
- TA_LIBRARY_PATH="ta-lib-install/lib"
147
- TA_INCLUDE_PATH="ta-lib-install/include"
148
- PIP_NO_BUILD_ISOLATION=false
149
- CIBW_REPAIR_WHEEL_COMMAND_LINUX : |
150
- export LD_LIBRARY_PATH="/project/ta-lib-install/lib:$LD_LIBRARY_PATH"
151
- auditwheel repair -w {dest_dir} {wheel}
152
- - name : Set wheel name
153
- run : |
154
- echo "WHEEL_NAME=ta_lib-${{env.TALIB_PY_VER}}-musllinux_x86_64" >> $GITHUB_ENV
155
- - name : Upload wheels
156
- uses : actions/upload-artifact@v4
157
- with :
158
- path : ./wheelhouse/*.whl
159
- name : ${{ env.WHEEL_NAME }}
160
96
build_musllinux_aarch64 :
161
97
name : Build MuslLinux arm64 wheels
162
98
strategy :
0 commit comments