Skip to content

Commit aac6fb1

Browse files
committed
.github/workflows: adding windows_arm64
1 parent 179bf51 commit aac6fb1

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,50 @@ jobs:
215215
with:
216216
path: ./wheelhouse/*.whl
217217
name: ${{ env.WHEEL_NAME }}
218+
build_windows_arm64:
219+
name: Build Windows arm64 wheels
220+
strategy:
221+
matrix:
222+
os: ["windows-11-arm"]
223+
runs-on: ${{ matrix.os }}
224+
env:
225+
MSBUILDTREATHIGHERTOOLSVERSIONASCURRENT: 1
226+
steps:
227+
- name: Checkout the repository
228+
uses: actions/checkout@v4
229+
- name: Set up MSVC for arm
230+
uses: ilammy/msvc-dev-cmd@v1
231+
with:
232+
arch: arm64
233+
- name: Build TA-Lib C library
234+
run: tools/build_wheel_windows.cmd
235+
shell: cmd
236+
- name: Build wheels
237+
uses: pypa/[email protected]
238+
env:
239+
PIP_NO_VERIFY: 0
240+
PIP_VERBOSE: 1
241+
CIBW_BUILD_VERBOSITY: 2
242+
CIBW_BEFORE_BUILD: pip install -U setuptools wheel numpy Cython
243+
CIBW_TEST_REQUIRES: pytest pandas polars
244+
CIBW_TEST_COMMAND: >
245+
cd .. &&
246+
pytest --rootdir=C: -k "not RSI and not threading" {project}/tests
247+
CIBW_TEST_SKIP: "*win32*"
248+
CIBW_SKIP: "pp*"
249+
CIBW_ARCHS_WINDOWS: ARM64
250+
CIBW_ENVIRONMENT_WINDOWS: >
251+
TA_LIBRARY_PATH="ta-lib-$TALIB_C_VER\\_build;$LIB"
252+
TA_INCLUDE_PATH="ta-lib-$TALIB_C_VER\\include;$INCLUDE"
253+
PIP_NO_BUILD_ISOLATION=false
254+
- name: Set wheel name
255+
run: |
256+
echo ("WHEEL_NAME=" + "ta_lib-" + $env:TALIB_PY_VER + "-win_arm64") >> $env:GITHUB_ENV
257+
- name: Upload wheel
258+
uses: actions/upload-artifact@v4
259+
with:
260+
path: ./wheelhouse/*.whl
261+
name: ${{ env.WHEEL_NAME }}
218262
build_macos_x86_64:
219263
name: Build MacOS x86_64 wheels
220264
strategy:

0 commit comments

Comments
 (0)