Skip to content

Commit b3c51cf

Browse files
authored
Update build_wheels_windows.yml
1 parent bb83796 commit b3c51cf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build_wheels_windows.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,12 @@ jobs:
8989
9090
set "OpenBLAS_HOME=%CD%"
9191
set "PATH=%OpenBLAS_HOME%\bin;%PATH%"
92-
powershell -Command "(Get-Content lib/cmake/openblas/OpenBLASConfig.cmake) -replace 'win32/include', 'include' -replace 'win64/include', 'include' -replace 'win32/bin', 'bin' -replace 'win64/bin', 'bin' | Set-Content lib/cmake/openblas/OpenBLASConfig.cmake"
92+
powershell -Command ^
93+
"$base = Resolve-Path .; " + `
94+
"$cfg = 'lib/cmake/openblas/OpenBLASConfig.cmake'; " + `
95+
"$fullInclude = Join-Path $base 'include'; " + `
96+
"$fullLib = Join-Path $base 'bin/libopenblas.dll'; " + `
97+
"(Get-Content $cfg) -replace 'SET\\(OpenBLAS_INCLUDE_DIRS.*?\\)', 'SET(OpenBLAS_INCLUDE_DIRS \"' + $fullInclude + '\")' -replace 'SET\\(OpenBLAS_LIBRARIES.*?\\)', 'SET(OpenBLAS_LIBRARIES \"' + $fullLib + '\")' | Set-Content $cfg"
9398
9499
if exist %OpenBLAS_HOME%\bin\libopenblas.dll (
95100
copy /y %OpenBLAS_HOME%\bin\libopenblas.dll %OpenBLAS_HOME%\bin\libopenblas.exp.dll

0 commit comments

Comments
 (0)