Skip to content

Commit 66d74ac

Browse files
authored
Update build_wheels_windows.yml
1 parent 67bf0aa commit 66d74ac

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

.github/workflows/build_wheels_windows.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,34 @@ jobs:
6868
uses: ilammy/setup-nasm@v1
6969

7070
- name: Setup OpenBLAS
71+
shell: cmd
7172
run: |
73+
setlocal enableextensions enabledelayedexpansion
74+
75+
rem Determine correct architecture
76+
if "${{ matrix.platform }}"=="x64" (
77+
set ARCH=x64
78+
) else (
79+
set ARCH=x86
80+
)
81+
82+
echo Using architecture: %ARCH%
83+
7284
mkdir openblas
7385
cd openblas
74-
curl -o OpenBLAS-0.3.24.zip https://altushost-swe.dl.sourceforge.net/project/openblas/v0.3.24/OpenBLAS-0.3.24-${{ matrix.platform }}.zip
75-
tar -xf OpenBLAS-0.3.24.zip || unzip OpenBLAS-0.3.24.zip
76-
set "OpenBLAS_HOME=${{ github.workspace }}\\openblas"
77-
set "PATH=%OpenBLAS_HOME%\\bin;%PATH%"
78-
if exist %OpenBLAS_HOME%\\bin\\libopenblas.dll (
79-
copy /y %OpenBLAS_HOME%\\bin\\libopenblas.dll %OpenBLAS_HOME%\\bin\\libopenblas.exp.dll
86+
curl -L -o OpenBLAS.zip https://downloads.sourceforge.net/project/openblas/v0.3.24/OpenBLAS-0.3.24-%ARCH%.zip
87+
powershell -Command "Expand-Archive -Path OpenBLAS.zip -DestinationPath ."
88+
89+
set "OpenBLAS_HOME=%CD%"
90+
set "PATH=%OpenBLAS_HOME%\bin;%PATH%"
91+
92+
if exist %OpenBLAS_HOME%\bin\libopenblas.dll (
93+
copy /y %OpenBLAS_HOME%\bin\libopenblas.dll %OpenBLAS_HOME%\bin\libopenblas.exp.dll
8094
)
81-
dir %OpenBLAS_HOME%\\bin
82-
shell: cmd
95+
96+
echo Finished OpenBLAS setup
97+
dir %OpenBLAS_HOME%\bin
98+
8399
84100
- name: Build a package
85101
run: |

0 commit comments

Comments
 (0)