Skip to content

Commit 5c98981

Browse files
committed
.github/workflows: ...
1 parent ad4718e commit 5c98981

File tree

2 files changed

+15
-81
lines changed

2 files changed

+15
-81
lines changed

.github/workflows/linux.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@ env:
88
PIP_VERBOSE: 1
99
CIBW_BEFORE_BUILD: pip install -U setuptools Cython wheel meson-python ninja && pip install -U numpy
1010
CIBW_TEST_REQUIRES: pytest pandas maturin polars
11-
CIBW_SKIP: "pp*"
1211

1312
jobs:
14-
build_linux_x86_64:
15-
name: Build Linux x86_64 wheels
13+
build_linux_arm64:
14+
name: Build Linux arm64 wheels
1615
strategy:
1716
matrix:
18-
os: ["ubuntu-22.04"]
17+
os: ["ubuntu-22.04-arm"]
1918
runs-on: ${{ matrix.os }}
2019
steps:
2120
- name: Checkout repository
@@ -25,13 +24,13 @@ jobs:
2524
env:
2625
CIBW_BEFORE_ALL: |
2726
bash ./tools/build_talib_linux.sh
28-
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
29-
CIBW_MUSLLINUX_X86_64_IMAGE: musllinux_1_2
30-
CIBW_SKIP: "pp*"
27+
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28
28+
CIBW_MUSLLINUX_AARCH64_IMAGE: musllinux_1_2
29+
CIBW_TEST_SKIP: "cp*-musllinux*"
3130
CIBW_TEST_COMMAND: >
3231
cd .. &&
3332
pytest -k "not RSI and not threading" {project}/tests
34-
CIBW_ARCHS_LINUX: x86_64
33+
CIBW_ARCHS_LINUX: aarch64
3534
CIBW_BUILD_FRONTEND: build
3635
CIBW_ENVIRONMENT_LINUX : >
3736
TA_LIBRARY_PATH="ta-lib-install/lib"
@@ -44,5 +43,4 @@ jobs:
4443
uses: actions/upload-artifact@v4
4544
with:
4645
path: ./wheelhouse/*.whl
47-
name: "ta_lib-${{ github.ref_name }}-manylinux_x86_64"
48-
46+
name: "ta_lib-${{ github.ref_name }}-linux_arm64"

.github/workflows/wheels.yml

Lines changed: 7 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,23 @@ env:
1616
CIBW_SKIP: "pp*"
1717

1818
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
2121
strategy:
2222
matrix:
2323
os: ["ubuntu-22.04"]
2424
runs-on: ${{ matrix.os }}
2525
steps:
2626
- name: Checkout repository
2727
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
3728
- name: Build wheels
3829
uses: pypa/cibuildwheel@v2.23.3
3930
env:
31+
CIBW_BEFORE_ALL: |
32+
bash ./tools/build_talib_linux.sh
4033
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*"
4236
CIBW_TEST_COMMAND: >
4337
cd .. &&
4438
pytest -k "not RSI and not threading" {project}/tests
@@ -51,14 +45,11 @@ jobs:
5145
CIBW_REPAIR_WHEEL_COMMAND_LINUX: |
5246
export LD_LIBRARY_PATH="/project/ta-lib-install/lib:$LD_LIBRARY_PATH"
5347
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
5748
- name: Upload wheels
5849
uses: actions/upload-artifact@v4
5950
with:
6051
path: ./wheelhouse/*.whl
61-
name: ${{ env.WHEEL_NAME }}
52+
name: "ta_lib-${{ github.ref_name }}-linux_x86_64"
6253
build_manylinux_arm64:
6354
name: Build ManyLinux arm64 wheels
6455
strategy:
@@ -102,61 +93,6 @@ jobs:
10293
with:
10394
path: ./wheelhouse/*.whl
10495
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 }}
16096
build_musllinux_aarch64:
16197
name: Build MuslLinux arm64 wheels
16298
strategy:

0 commit comments

Comments
 (0)