forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'OSGeo:master' into master
- Loading branch information
Showing
176 changed files
with
4,925 additions
and
2,943 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,10 +43,7 @@ jobs: | |
${{ runner.os }}-${{ env.cache-name }} | ||
- name: Install dependency | ||
run: | | ||
# This currently fails as of https://lists.osgeo.org/pipermail/ubuntu/2023-October/002046.html | ||
# sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable | ||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B827C12C2D425E227EDCA75089EBE08314DF160 | ||
sudo add-apt-repository -y http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu/ | ||
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable | ||
sudo apt-get update | ||
sudo apt-get install -y -q bison libaec-dev libjpeg-dev libgif-dev liblzma-dev libzstd-dev libgeos-dev git \ | ||
libcurl4-gnutls-dev libproj-dev libxml2-dev libxerces-c-dev libnetcdf-dev netcdf-bin \ | ||
|
@@ -554,20 +551,22 @@ jobs: | |
run: cat $GITHUB_WORKSPACE/build/gdal.pc | ||
|
||
build-mac: | ||
runs-on: macOS-latest | ||
# M1 MacOS runner: https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/ | ||
runs-on: macOS-14 | ||
env: | ||
# Disable Arrow/Parquet because the VM provides libraries in /usr/local/lib/ | ||
# that cause Illegal instruction error when running tests. I suspect the | ||
# Arrow/Parquet libraries to be built with AVX2 support but the VM worker | ||
# doesn't support it. | ||
# Disable use of libkml since boost headers cannot be found | ||
CMAKE_OPTIONS: -DCFITSIO_ROOT=/usr/local/opt/cfitsio -DPoppler_ROOT=/usr/local/opt/poppler -DPROJ_ROOT=/usr/local/opt/proj -DSPATIALITE_ROOT=/usr/local/opt/libspatialite -DPostgreSQL_ROOT=/usr/local/opt/libpq -DEXPAT_ROOT=/usr/local/opt/expat -DXercesC_ROOT=/usr/local/opt/xerces-c -DSQLite3_ROOT=/usr/local/opt/sqlite -DOpenSSL_ROOT=/usr/local/opt/openssl -DPNG_ROOT=/usr/local/opt/libpng -DJPEG_ROOT=/usr/local/opt/jpeg-turbo -DEXPECTED_JPEG_LIB_VERSION=80 -DOpenJPEG_ROOT=/usr/local/opt/openjpeg -DCURL_ROOT=/usr/local/opt/curl -DGDAL_USE_ARROW=OFF -DGDAL_USE_PARQUET=OFF -DGDAL_USE_LIBKML=OFF | ||
# Disable ODBC since the postinstall checks don't manage to find sql.h | ||
CMAKE_OPTIONS: -DCFITSIO_ROOT=/opt/homebrew/Cellar/cfitsio -DPoppler_ROOT=/opt/homebrew/Cellar/poppler -DPROJ_ROOT=/opt/homebrew/Cellar/proj -DSPATIALITE_ROOT=/opt/homebrew/Cellar/libspatialite -DPostgreSQL_ROOT=/opt/homebrew/Cellar/libpq -DEXPAT_ROOT=/opt/homebrew/Cellar/expat -DXercesC_ROOT=/opt/homebrew/Cellar/xerces-c -DSQLite3_ROOT=/opt/homebrew/Cellar/sqlite -DOpenSSL_ROOT=/opt/homebrew/Cellar/openssl -DPNG_ROOT=/opt/homebrew/Cellar/libpng -DJPEG_ROOT=/opt/homebrew/Cellar/jpeg-turbo -DEXPECTED_JPEG_LIB_VERSION=80 -DOpenJPEG_ROOT=/opt/homebrew/Cellar/openjpeg -DCURL_ROOT=/opt/homebrew/Cellar/curl -DGDAL_USE_LIBKML=OFF -DGDAL_USE_ODBC=OFF | ||
cache-name: cmake-macos | ||
steps: | ||
- name: Setup xcode | ||
uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0 | ||
with: | ||
xcode-version: 14.2 | ||
xcode-version: 14.3 | ||
- name: Checkout GDAL | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- name: Setup cache | ||
|
@@ -583,18 +582,17 @@ jobs: | |
cmake --version | ||
- name: Install dependency | ||
run: | | ||
rm -rf /usr/local/lib/node_modules # conflicts with node@18 from brew | ||
rm -rf /opt/homebrew/lib/node_modules # conflicts with node@18 from brew | ||
brew update | ||
brew outdated | ||
brew unlink python | ||
brew install --overwrite [email protected] [email protected] | ||
brew install postgresql || brew link postgresql | ||
brew install pkg-config freexl libxml2 libspatialite geos proj libgeotiff openjpeg giflib libaec postgis poppler doxygen unixodbc jpeg-turbo aom jpeg-xl libheif libarchive libkml boost | ||
brew install ccache swig | ||
brew link --force sqlite | ||
# gdal is automatically installed as a dependency for postgis | ||
brew uninstall --ignore-dependencies gdal | ||
# Remove broken Arrow as it causes CMake detection issue | ||
rm -rf /usr/local/lib/cmake/Arrow | ||
- name: Configure ccache | ||
run: | | ||
echo CCACHE_BASEDIR=$PWD >> ${GITHUB_ENV} | ||
|
@@ -605,7 +603,7 @@ jobs: | |
- name: Configure | ||
run: | | ||
mkdir -p $GITHUB_WORKSPACE/build | ||
export PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig | ||
export PKG_CONFIG_PATH=/opt/homebrew/Cellar/libxml2/lib/pkgconfig | ||
# FIXME: remove -DBUILD_PYTHON_BINDINGS=OFF. Python tests fail with "ModuleNotFoundError: No module named '_gdal'" with macos-12 | ||
cmake -Werror=dev -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/install-gdal ${CMAKE_OPTIONS} -DCMAKE_C_FLAGS=-Werror -DCMAKE_CXX_FLAGS=-Werror -DUSE_CCACHE=ON -DCMAKE_UNITY_BUILD=${CMAKE_UNITY_BUILD} -S "$GITHUB_WORKSPACE" -B "$GITHUB_WORKSPACE/build" -DWERROR_DEV_FLAG="-Werror=dev" -DBUILD_PYTHON_BINDINGS=OFF | ||
#$(cat $GITHUB_WORKSPACE/build/python_executable.txt) -m pip install --user -r $GITHUB_WORKSPACE/autotest/requirements.txt | ||
|
@@ -630,7 +628,7 @@ jobs: | |
./autotest/postinstall/test_gdal-config.sh $GITHUB_WORKSPACE/install-gdal | ||
- name: Test post-install usage (with CMake) | ||
run: | | ||
./autotest/postinstall/test_cmake.sh $GITHUB_WORKSPACE/install-gdal | ||
./autotest/postinstall/test_cmake.sh $GITHUB_WORKSPACE/install-gdal --dynamic --disable-odbc | ||
- name: ccache statistics | ||
run: ccache -s | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<VSISparseFile> | ||
<Length>12884901942</Length> | ||
<SubfileRegion> | ||
<Filename relative="1">huge_header.bmp.bin</Filename> | ||
<DestinationOffset>0</DestinationOffset> | ||
<SourceOffset>0</SourceOffset> | ||
<RegionLength>128</RegionLength> | ||
</SubfileRegion> | ||
</VSISparseFile> |
Oops, something went wrong.