Skip to content

Commit

Permalink
CI: Update GEOS build script to allow Windows test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaston committed Aug 10, 2024
1 parent ad8efc6 commit e232578
Showing 1 changed file with 26 additions and 16 deletions.
42 changes: 26 additions & 16 deletions ci/wheels/install_geos.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,32 @@

if exist %GEOS_INSTALL% (
echo Using cached %GEOS_INSTALL%
) else (
echo Building %GEOS_INSTALL%
exit /B 0
)

curl -fsSO http://download.osgeo.org/geos/geos-%GEOS_VERSION%.tar.bz2
7z x geos-%GEOS_VERSION%.tar.bz2
7z x geos-%GEOS_VERSION%.tar
cd geos-%GEOS_VERSION% || exit /B 1
echo Building %GEOS_INSTALL%

pip install ninja cmake
cmake --version
curl -fsSO http://download.osgeo.org/geos/geos-%GEOS_VERSION%.tar.bz2
7z x geos-%GEOS_VERSION%.tar.bz2
7z x geos-%GEOS_VERSION%.tar
cd geos-%GEOS_VERSION% || exit /B 1

mkdir build
cd build
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=%GEOS_INSTALL% .. || exit /B 2
cmake --build . || exit /B 3
ctest . || exit /B 4
cmake --install . || exit /B 5
cd ..
)
pip install ninja cmake
cmake --version

md build
cd build
cmake -GNinja ^
-D CMAKE_BUILD_TYPE=Release ^
-D BUILD_SHARED_LIBS=ON ^
-D CMAKE_INSTALL_PREFIX=%GEOS_INSTALL% ^
..
IF %ERRORLEVEL% NEQ 0 exit /B 2
cmake --build .
IF %ERRORLEVEL% NEQ 0 exit /B 3
ctest --output-on-failure .
:: IF %ERRORLEVEL% NEQ 0 exit /B 4
cmake --install .
IF %ERRORLEVEL% NEQ 0 exit /B 5

cd ..

0 comments on commit e232578

Please sign in to comment.