Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Mac intel import issue #25

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 66 additions & 12 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,14 @@ jobs:
TA_INCLUDE_PATH: ${{ github.workspace }}/dependencies/include
TA_LIBRARY_PATH: ${{ github.workspace }}/dependencies/lib
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-linux-${{ matrix.target }}
path: dist
- name: Test wheel installation
run: |
pip install dist/*.whl
python -c "import polars_talib; print('Import successful')"

linux-arm:
runs-on: ubuntu-24.04-arm
Expand Down Expand Up @@ -153,10 +157,14 @@ jobs:
TA_INCLUDE_PATH: ${{ github.workspace }}/dependencies/include
TA_LIBRARY_PATH: ${{ github.workspace }}/dependencies/lib
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-linux-${{ matrix.target }}
path: dist
- name: Test wheel installation
run: |
pip install dist/*.whl
python -c "import polars_talib; print('Import successful')"


windows:
Expand Down Expand Up @@ -194,16 +202,56 @@ jobs:
TA_INCLUDE_PATH: ${{ github.workspace }}\dependencies\include
TA_LIBRARY_PATH: ${{ github.workspace }}\dependencies\lib
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-windows-${{ matrix.target }}
path: dist
- name: Test wheel installation
run: |
pip install dist/*.whl
python -c "import polars_talib; print('Import successful')"
shell: bash

macos-intel:
runs-on: macos-13
strategy:
matrix:
target: [x86_64]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install uv
uses: astral-sh/setup-uv@v5
- name: install tools
run: |
uv tool install maturin
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
env:
DEPS_PATH: ${{ github.workspace }}/dependencies
TA_INCLUDE_PATH: ${{ github.workspace }}/dependencies/include
TA_LIBRARY_PATH: ${{ github.workspace }}/dependencies/lib
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-macos-${{ matrix.target }}
path: dist
- name: Test wheel installation
run: |
pip install dist/*.whl
python -c "import polars_talib; print('Import successful')"

macos:
runs-on: macos-latest
strategy:
matrix:
target: [x86_64, aarch64-apple-darwin]
target: [aarch64-apple-darwin] # x86_64,
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
Expand All @@ -225,20 +273,26 @@ jobs:
TA_INCLUDE_PATH: ${{ github.workspace }}/dependencies/include
TA_LIBRARY_PATH: ${{ github.workspace }}/dependencies/lib
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-macos-${{ matrix.target }}
path: dist
- name: Test wheel installation
run: |
pip install dist/*.whl
python -c "import polars_talib; print('Import successful')"

release:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, macos, windows]
if: startsWith(github.ref, 'refs/tags/')
needs: [linux, macos, windows, macos-intel, linux-arm]
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
path: dist
pattern: wheels-*
merge-multiple: true
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,6 @@ dmypy.json
cython_debug/

# pytest benchmark
.benchmarks
.benchmarks

.DS_Store
Loading