Skip to content

Commit dbee3af

Browse files
committed
.github/workflows: ...
1 parent e12dc99 commit dbee3af

File tree

1 file changed

+39
-38
lines changed

1 file changed

+39
-38
lines changed

.github/workflows/wheels.yml

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ jobs:
2626
env:
2727
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
2828
CIBW_MANYLINUX_I686_IMAGE: manylinux_2_28
29-
CIBW_MANYLINUX_PYPY_X86_64_IMAGE: manylinux_2_28
30-
CIBW_MANYLINUX_PYPY_I686_IMAGE: manylinux_2_28
29+
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28
3130
CIBW_TEST_COMMAND: >
3231
cd .. &&
3332
pytest -k "not RSI and not threading" {project}/tests
@@ -63,43 +62,35 @@ jobs:
6362
with:
6463
path: ./wheelhouse/*.whl
6564
name: ${{ env.WHEEL_NAME }}
66-
build_musllinux_x86_64:
67-
name: Build MuslLinux x86_64 wheels
65+
build_manylinux_arm64:
66+
name: Build ManyLinux arm64 wheels
6867
strategy:
6968
matrix:
70-
os: ["ubuntu-22.04"]
69+
os: ["ubuntu-22.04-arm"]
7170
runs-on: ${{ matrix.os }}
7271
env:
72+
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
73+
CIBW_MANYLINUX_I686_IMAGE: manylinux_2_28
74+
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28
7375
CIBW_TEST_COMMAND: >
7476
cd .. &&
7577
pytest -k "not RSI and not threading" {project}/tests
7678
steps:
7779
- name: Checkout repository
7880
uses: actions/checkout@v4
79-
- name: Setup latest Alpine Linux
80-
uses: jirutka/setup-alpine@v1
81-
with:
82-
branch: v3.19
83-
packages: >
84-
build-base
85-
bash
86-
curl
87-
unzip
88-
gcc
89-
g++
90-
cmake
91-
ninja
92-
rust
93-
volumes: ${{ github.workspace }}:/project
81+
- name: Install GCC and CMake
82+
run: |
83+
sudo apt-get update
84+
sudo apt-get install -y gcc g++ cmake ninja-build
9485
- name: Make script executable
9586
run: chmod +x ./tools/build_talib_linux.sh
9687
- name: Build TA-Lib C Library
9788
run: ./tools/build_talib_linux.sh
98-
shell: alpine.sh {0}
89+
shell: bash
9990
- name: Build wheels
10091
uses: pypa/[email protected]
10192
env:
102-
CIBW_ARCHS_LINUX: x86_64
93+
CIBW_ARCHS_LINUX: aarch64
10394
CIBW_BUILD_FRONTEND: build
10495
CIBW_ENVIRONMENT_LINUX : >
10596
TA_LIBRARY_PATH="ta-lib-install/lib"
@@ -110,42 +101,52 @@ jobs:
110101
auditwheel repair -w {dest_dir} {wheel}
111102
- name: Set wheel name
112103
run: |
113-
echo "WHEEL_NAME=ta_lib-${{env.TALIB_PY_VER}}-musllinux_x86_64" >> $GITHUB_ENV
104+
echo "WHEEL_NAME=ta_lib-${{env.TALIB_PY_VER}}-manylinux_aarch64" >> $GITHUB_ENV
114105
- name: Upload wheels
115106
uses: actions/upload-artifact@v4
116107
with:
117108
path: ./wheelhouse/*.whl
118109
name: ${{ env.WHEEL_NAME }}
119-
build_manylinux_arm64:
120-
name: Build ManyLinux arm64 wheels
110+
build_musllinux_x86_64:
111+
name: Build MuslLinux x86_64 wheels
121112
strategy:
122113
matrix:
123-
os: ["ubuntu-22.04-arm"]
114+
os: ["ubuntu-22.04"]
124115
runs-on: ${{ matrix.os }}
125116
env:
126-
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
127-
CIBW_MANYLINUX_I686_IMAGE: manylinux_2_28
128-
CIBW_MANYLINUX_PYPY_X86_64_IMAGE: manylinux_2_28
129-
CIBW_MANYLINUX_PYPY_I686_IMAGE: manylinux_2_28
117+
CIBW_MUSLLINUX_X86_64_IMAGE: musllinux_1_2
118+
CIBW_MUSLLINUX_I686_IMAGE: musllinux_1_2
119+
CIBW_MUSLLINUX_AARCH64_IMAGE: musllinux_1_2
130120
CIBW_TEST_COMMAND: >
131121
cd .. &&
132122
pytest -k "not RSI and not threading" {project}/tests
133123
steps:
134124
- name: Checkout repository
135125
uses: actions/checkout@v4
136-
- name: Install GCC and CMake
137-
run: |
138-
sudo apt-get update
139-
sudo apt-get install -y gcc g++ cmake ninja-build
126+
- name: Setup latest Alpine Linux
127+
uses: jirutka/setup-alpine@v1
128+
with:
129+
branch: v3.15
130+
packages: >
131+
build-base
132+
bash
133+
curl
134+
unzip
135+
gcc
136+
g++
137+
cmake
138+
ninja
139+
rust
140+
volumes: ${{ github.workspace }}:/project
140141
- name: Make script executable
141142
run: chmod +x ./tools/build_talib_linux.sh
142143
- name: Build TA-Lib C Library
143144
run: ./tools/build_talib_linux.sh
144-
shell: bash
145+
shell: alpine.sh {0}
145146
- name: Build wheels
146147
uses: pypa/[email protected]
147148
env:
148-
CIBW_ARCHS_LINUX: aarch64
149+
CIBW_ARCHS_LINUX: x86_64
149150
CIBW_BUILD_FRONTEND: build
150151
CIBW_ENVIRONMENT_LINUX : >
151152
TA_LIBRARY_PATH="ta-lib-install/lib"
@@ -156,7 +157,7 @@ jobs:
156157
auditwheel repair -w {dest_dir} {wheel}
157158
- name: Set wheel name
158159
run: |
159-
echo "WHEEL_NAME=ta_lib-${{env.TALIB_PY_VER}}-manylinux_aarch64" >> $GITHUB_ENV
160+
echo "WHEEL_NAME=ta_lib-${{env.TALIB_PY_VER}}-musllinux_x86_64" >> $GITHUB_ENV
160161
- name: Upload wheels
161162
uses: actions/upload-artifact@v4
162163
with:
@@ -178,7 +179,7 @@ jobs:
178179
- name: Setup latest Alpine Linux
179180
uses: jirutka/setup-alpine@v1
180181
with:
181-
branch: v3.19
182+
branch: v3.15
182183
packages: >
183184
build-base
184185
bash

0 commit comments

Comments
 (0)