diff --git a/.github/workflows/pyinstaller.yml b/.github/workflows/pyinstaller.yml index 6999c1b..7a06dcb 100644 --- a/.github/workflows/pyinstaller.yml +++ b/.github/workflows/pyinstaller.yml @@ -66,8 +66,8 @@ jobs: - name: Run build run: | # Get-ChildItem -Path C:\ -Filter libcasadi.dll -Recurse - CPATH=$pythonLocation/include/python${{ matrix.python-version }}m - echo "CPATH=$CPATH" >> $GITHUB_ENV + # CPATH=$pythonLocation/include/python${{ matrix.python-version }}m + # echo "CPATH=$CPATH" >> $GITHUB_ENV pyinstaller pyinstaller.spec ${{ github.event.inputs.type }} - uses: actions/upload-artifact@v2 with: diff --git a/pyinstaller.spec b/pyinstaller.spec index 0f2916a..d1f8316 100644 --- a/pyinstaller.spec +++ b/pyinstaller.spec @@ -48,11 +48,11 @@ hidden_imports_numpy = collect_submodules('numpy') hidden_imports = hidden_imports + hidden_imports_numpy if sys.platform == 'win32': - print(os.path.join(os.environ['CPATH'])) - dlls = [(os.path.join(os.environ['CPATH'], 'libcasadi.dll'), '.'), - (os.path.join(os.environ['CPATH'], 'libcasadi_nlpsol_ipopt.dll'), '.'), - (os.path.join(os.environ['CPATH'], 'libgfortran-3.dll'), '.'), - (os.path.join(os.environ['CPATH'], 'libquadmath-0.dll'), '.')] + # print(os.path.join(os.environ['CPATH'])) + dlls = [('C:\hostedtoolcache\windows\Python\3.10.11\x64\Lib\site-packages\casadi\libcasadi.dll', '.'), + ('C:\hostedtoolcache\windows\Python\3.10.11\x64\Lib\site-packages\casadi\libcasadi_nlpsol_ipopt.dll', '.'), + ('C:\hostedtoolcache\windows\Python\3.10.11\x64\Lib\site-packages\casadi\libgfortran-3.dll', '.'), + ('C:\hostedtoolcache\windows\Python\3.10.11\x64\Lib\site-packages\casadi\libquadmath-0.dll', '.')] else: dlls = []