Skip to content

Commit

Permalink
adding cmake config directories to the environment for the MSCV CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-dixon committed Aug 5, 2024
1 parent e5795f0 commit ac701b0
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,20 +96,22 @@ jobs:
-DNO_IDL_WRAPPER=ON
-DNO_MEMCACHE=ON
-DCMAKE_INSTALL_PREFIX=install
&& (Get-Content build/CMakeCache.txt) | ForEach-Object {
if ($_ -match ".*Iconv_INCLUDE_DIR.*") {
"Iconv_INCLUDE_DIR:PATH=C:/vcpkg/installed/x64-windows-static-md/include"
} else {
$_
}
} | Set-Content ./build/CMakeCache.txt
&& Add-Content -Path ./build/CMakeCache.txt -Value "Iconv_INCLUDE_DIR:PATH=C:/vcpkg/installed/x64-windows-static-md/include"
&& cp C:/vcpkg/installed/x64-windows-static-md/include/iconv.h C:/vcpkg/installed/x64-windows-static-md/include/libxml/
&& cmake --build build -j --config Release
&& cmake --install build --config Release
&& ls install/lib
# && cp -r install ${{github.workspace}}\python_installer
# && ls ${{github.workspace}}
# && sed -i "s/.*Iconv_INCLUDE_DIR.*/Iconv_INCLUDE_DIR:PATH=C:/vcpkg/installed/x64-windows-static-md/include" build/CMakeCache.txt
# && (Get-Content build/CMakeCache.txt) | ForEach-Object {
# if ($_ -match ".*Iconv_INCLUDE_DIR.*") {
# "Iconv_INCLUDE_DIR:PATH=C:/vcpkg/installed/x64-windows-static-md/include"
# } else {
# $_
# }
# } | Set-Content ./build/CMakeCache.txt
# && Add-Content -Path ./build/CMakeCache.txt -Value "Iconv_INCLUDE_DIR:PATH=C:/vcpkg/installed/x64-windows-static-md/include"
# - name: test pyuda on windows
# if: runner.os == 'Windows'
Expand Down

0 comments on commit ac701b0

Please sign in to comment.