Skip to content

Commit

Permalink
fix windows 2
Browse files Browse the repository at this point in the history
  • Loading branch information
saleh-mir committed Jan 4, 2025
1 parent 1d19c0f commit 3bb96e9
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,21 @@ jobs:
~/.local/ta-lib/lib
~/.local/ta-lib/include
key: talib-cache-v0.4.0
- name: Install ta-lib mac / windows
shell: bash
- name: Install ta-lib Windows
if: runner.os == 'Windows'
shell: cmd
run: |
if [ "$RUNNER_OS" = "macOS" ]; then
brew install ta-lib
elif [ "$RUNNER_OS" = "Windows" ]; then
curl -sL http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-msvc.zip -o $GITHUB_WORKSPACE/ta-lib.zip --create-dirs && 7z x $GITHUB_WORKSPACE/ta-lib.zip -o/c/ta-lib && mv /c/ta-lib/ta-lib/* /c/ta-lib/ && rm -rf /c/ta-lib/ta-lib && cd /c/ta-lib/c/make/cdr/win32/msvc && nmake
fi
curl -sL http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-msvc.zip -o ta-lib.zip
7z x ta-lib.zip -o/c/ta-lib
move /c/ta-lib/ta-lib/* /c/ta-lib/
rmdir /s /q /c/ta-lib/ta-lib
cd /c/ta-lib/c/make/cdr/win32/msvc
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
nmake
- name: Install ta-lib macOS
if: runner.os == 'macOS'
run: |
brew install ta-lib
- name: Install ta-lib Linux
if: steps.talib-cache.outputs.cache-hit != 'true'
run: |
Expand Down

0 comments on commit 3bb96e9

Please sign in to comment.