From 3bb96e9311867c35c842a355900ead9cea6cd7de Mon Sep 17 00:00:00 2001 From: Saleh Mir Date: Sat, 4 Jan 2025 21:49:45 +0330 Subject: [PATCH] fix windows 2 --- .github/workflows/python-package.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 47487305b..563a86725 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -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: |