Skip to content

Commit 2335ae8

Browse files
committed
.github/workflows: ...
1 parent 512afe8 commit 2335ae8

File tree

1 file changed

+6
-65
lines changed

1 file changed

+6
-65
lines changed

.github/workflows/wheels.yml

Lines changed: 6 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -49,82 +49,23 @@ jobs:
4949
with:
5050
path: ./wheelhouse/*.whl
5151
name: "ta_lib-${{ github.ref_name }}-linux_x86_64"
52-
build_manylinux_arm64:
53-
name: Build ManyLinux arm64 wheels
52+
build_linux_arm64:
53+
name: Build Linux arm64 wheels
5454
strategy:
5555
matrix:
5656
os: ["ubuntu-22.04-arm"]
5757
runs-on: ${{ matrix.os }}
5858
steps:
5959
- name: Checkout repository
6060
uses: actions/checkout@v4
61-
- name: Install GCC and CMake
62-
run: |
63-
sudo apt-get update
64-
sudo apt-get install -y gcc g++ cmake ninja-build
65-
- name: Make script executable
66-
run: chmod +x ./tools/build_talib_linux.sh
67-
- name: Build TA-Lib C Library
68-
run: ./tools/build_talib_linux.sh
69-
shell: bash
7061
- name: Build wheels
7162
uses: pypa/[email protected]
7263
env:
64+
CIBW_BEFORE_ALL: |
65+
bash ./tools/build_talib_linux.sh
7366
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28
74-
CIBW_SKIP: "pp* cp*-musllinux*"
75-
CIBW_TEST_COMMAND: >
76-
cd .. &&
77-
pytest -k "not RSI and not threading" {project}/tests
78-
CIBW_ARCHS_LINUX: aarch64
79-
CIBW_BUILD_FRONTEND: build
80-
CIBW_ENVIRONMENT_LINUX : >
81-
TA_LIBRARY_PATH="ta-lib-install/lib"
82-
TA_INCLUDE_PATH="ta-lib-install/include"
83-
PIP_NO_BUILD_ISOLATION=false
84-
CIBW_REPAIR_WHEEL_COMMAND_LINUX: |
85-
export LD_LIBRARY_PATH="/project/ta-lib-install/lib:$LD_LIBRARY_PATH"
86-
auditwheel repair -w {dest_dir} {wheel}
87-
- name: Upload wheels
88-
uses: actions/upload-artifact@v4
89-
with:
90-
path: ./wheelhouse/*.whl
91-
name: "ta_lib-${{ github.ref_name }}-manylinux_aarch64"
92-
build_musllinux_aarch64:
93-
name: Build MuslLinux arm64 wheels
94-
strategy:
95-
matrix:
96-
os: ["ubuntu-22.04"]
97-
runs-on: ${{ matrix.os }}
98-
steps:
99-
- name: Checkout repository
100-
uses: actions/checkout@v4
101-
- name: Setup latest Alpine Linux
102-
uses: jirutka/setup-alpine@v1
103-
with:
104-
branch: v3.15
105-
packages: >
106-
build-base
107-
bash
108-
curl
109-
unzip
110-
gcc
111-
g++
112-
cmake
113-
ninja
114-
rust
115-
arch: aarch64
116-
volumes: ${{ github.workspace }}:/project
117-
- name: Make script executable
118-
run: chmod +x ./tools/build_talib_linux.sh
119-
- name: Build TA-Lib C Library
120-
run: ./tools/build_talib_linux.sh
121-
shell: alpine.sh {0}
122-
- name: Build wheels
123-
uses: pypa/[email protected]
124-
env:
12567
CIBW_MUSLLINUX_AARCH64_IMAGE: musllinux_1_2
126-
CIBW_TEST_SKIP: "cp*"
127-
CIBW_SKIP: "pp* cp*-manylinux*"
68+
CIBW_TEST_SKIP: "cp*-musllinux*"
12869
CIBW_TEST_COMMAND: >
12970
cd .. &&
13071
pytest -k "not RSI and not threading" {project}/tests
@@ -141,7 +82,7 @@ jobs:
14182
uses: actions/upload-artifact@v4
14283
with:
14384
path: ./wheelhouse/*.whl
144-
name: "ta_lib-${{ github.ref_name }}-musllinux_aarch64"
85+
name: "ta_lib-${{ github.ref_name }}-linux_arm64"
14586
build_windows_amd64:
14687
name: Build Windows amd64 wheels
14788
strategy:

0 commit comments

Comments
 (0)