@@ -269,14 +269,11 @@ jobs:
269
269
steps :
270
270
- name : Checkout repository
271
271
uses : actions/checkout@v4
272
- - name : Make script executable
273
- run : chmod +x ./tools/build_talib_macos.sh
274
- - name : Build TA-Lib C Library
275
- run : ./tools/build_talib_macos.sh
276
- shell : bash
277
272
- name : Build wheels
278
273
uses : pypa/cibuildwheel@v2.23.3
279
274
env :
275
+ CIBW_BEFORE_ALL : |
276
+ bash ./tools/build_talib_macos.sh
280
277
CIBW_TEST_COMMAND : >
281
278
cd .. &&
282
279
pytest -k "not RSI and not threading" {project}/tests
@@ -289,14 +286,11 @@ jobs:
289
286
export MACOSX_DEPLOYMENT_TARGET=13.7
290
287
export DYLD_LIBRARY_PATH="/Users/runner/work/${{ github.event.repository.name }}/${{ github.event.repository.name }}/ta-lib-install/lib:$DYLD_LIBRARY_PATH"
291
288
delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}
292
- - name : Set wheel name
293
- run : |
294
- echo "WHEEL_NAME=ta_lib-${{env.TALIB_PY_VER}}-macos_x86_64" >> $GITHUB_ENV
295
289
- name : Upload wheels
296
290
uses : actions/upload-artifact@v4
297
291
with :
298
292
path : ./wheelhouse/*.whl
299
- name : ${{ env.WHEEL_NAME }}
293
+ name : " ta_lib- ${{ github.ref_name }}-macos_x86_64 "
300
294
build_macos_arm64 :
301
295
name : Build MacOS arm64 wheels
302
296
strategy :
@@ -306,14 +300,11 @@ jobs:
306
300
steps :
307
301
- name : Checkout repository
308
302
uses : actions/checkout@v4
309
- - name : Make script executable
310
- run : chmod +x ./tools/build_talib_macos.sh
311
- - name : Build TA-Lib C Library
312
- run : ./tools/build_talib_macos.sh
313
- shell : bash
314
303
- name : Build wheels
315
304
uses : pypa/cibuildwheel@v2.23.3
316
305
env :
306
+ CIBW_BEFORE_ALL : |
307
+ bash ./tools/build_talib_macos.sh
317
308
CIBW_TEST_COMMAND : >
318
309
cd .. &&
319
310
pytest -k "not RSI and not threading" {project}/tests
@@ -326,11 +317,8 @@ jobs:
326
317
export MACOSX_DEPLOYMENT_TARGET=14.0
327
318
export DYLD_LIBRARY_PATH="/Users/runner/work/${{ github.event.repository.name }}/${{ github.event.repository.name }}/ta-lib-install/lib:$DYLD_LIBRARY_PATH"
328
319
delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}
329
- - name : Set wheel name
330
- run : |
331
- echo "WHEEL_NAME=ta_lib-${{env.TALIB_PY_VER}}-macos_arm64" >> $GITHUB_ENV
332
320
- name : Upload wheels
333
321
uses : actions/upload-artifact@v4
334
322
with :
335
323
path : ./wheelhouse/*.whl
336
- name : ${{ env.WHEEL_NAME }}
324
+ name : " ta_lib- ${{ github.ref_name }}-macos_arm64 "
0 commit comments