Skip to content

Commit

Permalink
Merge branch 'OSGeo:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
a0x8o authored Jul 19, 2024
2 parents c87b3a5 + 0c57764 commit 4affcfc
Show file tree
Hide file tree
Showing 162 changed files with 27,109 additions and 3,211 deletions.
37 changes: 16 additions & 21 deletions .github/workflows/cmake_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
# Workaround bug in ogdi packaging
sudo ln -s /usr/lib/ogdi/libvrf.so /usr/lib
#
python3 -m pip install -U pip wheel setuptools numpy
python3 -m pip install -U pip wheel setuptools numpy importlib_metadata
python3 -m pip install -r $GITHUB_WORKSPACE/autotest/requirements.txt
- name: Build libjxl
Expand Down Expand Up @@ -466,30 +466,25 @@ jobs:
shell: bash -l {0}
run: |
cmake --build $GITHUB_WORKSPACE/build --config Release --target quicktest
# FIXME !! Disabled because of actions/runner-images#10004
#- name: test (with ctest)
# shell: bash -l {0}
# run: |
# ctest --test-dir $GITHUB_WORKSPACE/build -C Release -V -j 3
# env:
# SKIP_OGR_GMLAS_HUGE_PROCESSING_TIME: YES
# SKIP_OGR_GMLAS_HTTP_RELATED: YES
# SKIP_GDAL_HTTP_SSL_VERIFYSTATUS: YES
# BUILD_NAME: "build-windows-conda"
- name: test (with ctest)
shell: bash -l {0}
run: |
ctest --test-dir $GITHUB_WORKSPACE/build -C Release -V -j 3
env:
SKIP_OGR_GMLAS_HUGE_PROCESSING_TIME: YES
SKIP_OGR_GMLAS_HTTP_RELATED: YES
SKIP_GDAL_HTTP_SSL_VERIFYSTATUS: YES
BUILD_NAME: "build-windows-conda"
- name: Install
shell: bash -l {0}
run: |
cmake --build $GITHUB_WORKSPACE/build --config Release --target install
# FIXME !! Disabled because of actions/runner-images#10004
#- name: Test install
# shell: bash -l {0}
# run: |
# export PATH=$GITHUB_WORKSPACE/install-gdal/bin:$PATH
# gdalinfo --version
# python -VV
# PYTHONPATH=$GITHUB_WORKSPACE/install-gdal/lib/site-packages python -c "from osgeo import gdal;print(gdal.VersionInfo(None))"
# export PATH=$GITHUB_WORKSPACE/install-gdal/Scripts:$PATH
# PYTHONPATH=$GITHUB_WORKSPACE/install-gdal/lib/site-packages gdal_edit --version
export PATH=$GITHUB_WORKSPACE/install-gdal/bin:$PATH
gdalinfo --version
python -VV
PYTHONPATH=$GITHUB_WORKSPACE/install-gdal/lib/site-packages python -c "from osgeo import gdal;print(gdal.VersionInfo(None))"
export PATH=$GITHUB_WORKSPACE/install-gdal/Scripts:$PATH
PYTHONPATH=$GITHUB_WORKSPACE/install-gdal/lib/site-packages gdal_edit --version
- name: Show gdal.pc
shell: bash -l {0}
run: cat $GITHUB_WORKSPACE/build/gdal.pc
Expand Down
60 changes: 55 additions & 5 deletions .github/workflows/ubuntu_20.04/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ unset CFLAGS
make "-j$(nproc)"
make "-j$(nproc)" install

# Download Oracle SDK
wget https://download.oracle.com/otn_software/linux/instantclient/1923000/instantclient-basic-linux.x64-19.23.0.0.0dbru.zip
wget https://download.oracle.com/otn_software/linux/instantclient/1923000/instantclient-sdk-linux.x64-19.23.0.0.0dbru.zip
unzip -o instantclient-basic-linux.x64-19.23.0.0.0dbru.zip
unzip -o instantclient-sdk-linux.x64-19.23.0.0.0dbru.zip

# Test building MrSID driver in standalone mode
mkdir build_mrsid
cd build_mrsid
Expand All @@ -34,11 +40,55 @@ cd ..
# Test building OCI driver in standalone mode
mkdir build_oci
cd build_oci
wget https://download.oracle.com/otn_software/linux/instantclient/1923000/instantclient-basic-linux.x64-19.23.0.0.0dbru.zip
wget https://download.oracle.com/otn_software/linux/instantclient/1923000/instantclient-sdk-linux.x64-19.23.0.0.0dbru.zip
unzip -o instantclient-basic-linux.x64-19.23.0.0.0dbru.zip
unzip -o instantclient-sdk-linux.x64-19.23.0.0.0dbru.zip
cmake -S "${GDAL_SOURCE_DIR:=..}/ogr/ogrsf_frmts/oci" "-DOracle_ROOT=$PWD/instantclient_19_23" -DCMAKE_PREFIX_PATH=/tmp/install-gdal
cmake -S "${GDAL_SOURCE_DIR:=..}/ogr/ogrsf_frmts/oci" "-DOracle_ROOT=$PWD/../instantclient_19_23" -DCMAKE_PREFIX_PATH=/tmp/install-gdal
cmake --build . "-j$(nproc)"
test -f ogr_OCI.so
cd ..

# Test building GeoRaster driver in standalone mode
mkdir build_georaster
cd build_georaster
cmake -S "${GDAL_SOURCE_DIR:=..}/frmts/georaster" -DCMAKE_PREFIX_PATH=/tmp/install-gdal "-DOracle_ROOT=$PWD/../instantclient_19_23"
cmake --build . "-j$(nproc)"
test -f gdal_GEOR.so
cd ..

# Test building Parquet driver in standalone mode
mkdir build_parquet
cd build_parquet
cmake -S "${GDAL_SOURCE_DIR:=..}/ogr/ogrsf_frmts/parquet" -DCMAKE_PREFIX_PATH=/tmp/install-gdal
cmake --build . "-j$(nproc)"
test -f ogr_Parquet.so
cd ..

# Test building Arrow driver in standalone mode
mkdir build_arrow
cd build_arrow
cmake -S "${GDAL_SOURCE_DIR:=..}/ogr/ogrsf_frmts/arrow" -DCMAKE_PREFIX_PATH=/tmp/install-gdal
cmake --build . "-j$(nproc)"
test -f ogr_Arrow.so
cd ..

# Test building OpenJPEG driver in standalone mode
mkdir build_openjpeg
cd build_openjpeg
cmake -S "${GDAL_SOURCE_DIR:=..}/frmts/openjpeg" -DCMAKE_PREFIX_PATH=/tmp/install-gdal
cmake --build . "-j$(nproc)"
test -f gdal_JP2OpenJPEG.so
cd ..

# Test building TileDB driver in standalone mode
mkdir build_tiledb
cd build_tiledb
cmake -S "${GDAL_SOURCE_DIR:=..}/frmts/tiledb" -DCMAKE_PREFIX_PATH=/tmp/install-gdal
cmake --build . "-j$(nproc)"
test -f gdal_TileDB.so
cd ..

# Test building ECW driver in standalone mode
mkdir build_ecw
cd build_ecw
cmake -S "${GDAL_SOURCE_DIR:=..}/frmts/ecw" -DCMAKE_PREFIX_PATH=/tmp/install-gdal -DECW_ROOT=/opt/libecwj2-3.3
cmake --build . "-j$(nproc)"
test -f gdal_ECW_JP2ECW.so
cd ..
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# CMake4GDAL project is distributed under MIT license. See accompanying file LICENSE.txt.
cmake_minimum_required(VERSION 3.16...3.28)
include(cmake/helpers/GdalCMakeMinimumRequired.cmake)
cmake_minimum_required(VERSION ${GDAL_CMAKE_VERSION_MIN}...${GDAL_CMAKE_VERSION_MAX})

project(gdal LANGUAGES C CXX)
include(CTest)
Expand Down
Loading

0 comments on commit 4affcfc

Please sign in to comment.