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
lucianpls authored Jun 20, 2021
2 parents ccb76b0 + 9d26e5b commit 06abdf4
Show file tree
Hide file tree
Showing 924 changed files with 41,182 additions and 11,417 deletions.
1 change: 1 addition & 0 deletions .github/LICENSE.TXT
5 changes: 4 additions & 1 deletion .github/workflows/asan/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ ccache -s

# Build proj
(cd proj; ./autogen.sh && CFLAGS='-DPROJ_RENAME_SYMBOLS' CXXFLAGS='-DPROJ_RENAME_SYMBOLS' ./configure --disable-static --prefix=/usr/local && make -j3)
(cd proj; sudo make -j3 install && sudo mv /usr/local/lib/libproj.so.15.0.0 /usr/local/lib/libinternalproj.so.15.0.0 && sudo rm /usr/local/lib/libproj.so* && sudo rm /usr/local/lib/libproj.la && sudo ln -f -s libinternalproj.so.15.0.0 /usr/local/lib/libinternalproj.so.15 && sudo ln -f -s libinternalproj.so.15.0.0 /usr/local/lib/libinternalproj.so)
(cd proj; sudo make -j3 install)
sudo sh -c "apt-get remove -y libproj-dev"

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

CURRENT_DIR=$PWD
cd gdal
Expand Down
24 changes: 6 additions & 18 deletions .github/workflows/clang_static_analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,21 @@ on:
jobs:

clang_static_analyzer_part_1:
runs-on: ubuntu-16.04
runs-on: ubuntu-20.04
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Requirements
run: ./gdal/ci/travis/csa_part_1/before_install.sh

- name: Run analysis
run: ./gdal/ci/travis/csa_part_1/install.sh

- name: Parse analysis log
run: ./gdal/ci/travis/csa_part_1/script.sh
- name: Run
run: docker run --rm -v $PWD:$PWD ubuntu:16.04 sh -c "cd $PWD && apt update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends sudo software-properties-common && DEBIAN_FRONTEND=noninteractive sh ./gdal/ci/travis/csa_part_1/before_install.sh && sh ./gdal/ci/travis/csa_part_1/install.sh && sh ./gdal/ci/travis/csa_part_1/script.sh"

clang_static_analyzer_part_2:
runs-on: ubuntu-16.04
runs-on: ubuntu-20.04
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Requirements
run: ./gdal/ci/travis/csa_part_2/before_install.sh

- name: Run analysis
run: ./gdal/ci/travis/csa_part_2/install.sh

- name: Parse analysis log
run: ./gdal/ci/travis/csa_part_2/script.sh
- name: Run
run: docker run --rm -v $PWD:$PWD ubuntu:16.04 sh -c "cd $PWD && apt update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends sudo software-properties-common && DEBIAN_FRONTEND=noninteractive sh ./gdal/ci/travis/csa_part_2/before_install.sh && sh ./gdal/ci/travis/csa_part_2/install.sh && sh ./gdal/ci/travis/csa_part_2/script.sh"
4 changes: 2 additions & 2 deletions .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ jobs:
# flake8 codes to just emulate pyflakes (http://flake8.pycqa.org/en/latest/user/error-codes.html)
export FLAKE8="flake8 --select=F401,F402,F403,F404,F405,F406,F407,F601,F602,F621,F622,F631,F701,F702,F703,F704,F705,F706,F707,F721,F722,F811,F812,F821,F822,F823,F831,F841,F901,E999"
$FLAKE8 autotest
$FLAKE8 gdal/swig/python/scripts
$FLAKE8 gdal/swig/python/samples
$FLAKE8 gdal/swig/python/gdal-utils/scripts
$FLAKE8 gdal/swig/python/gdal-utils/osgeo_utils/samples
$FLAKE8 gdal/swig/python/osgeo/utils
$FLAKE8 gdal/swig/python/osgeo/utils/auxiliary
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/fedora_rawhide/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

dnf install -y --setopt=install_weak_deps=False proj-devel
dnf install -y clang make diffutils ccache \
libxml2-devel expat-devel xerces-c-devel \
libxml2-devel libxslt-devel expat-devel xerces-c-devel \
zlib-devel xz-devel libzstd-devel \
giflib-devel libjpeg-devel libpng-devel \
openjpeg2-devel cfitsio-devel libwebp-devel \
Expand Down Expand Up @@ -67,13 +67,14 @@ rm -f "$WORK_DIR/ccache.tar.gz"

export PYTEST="python3 -m pytest -vv -p no:sugar --color=no"

projsync --system-directory --file us_noaa_conus.tif
projsync --system-directory --file us_nga_egm96
projsync --system-directory --file ca_nrc_ntv1_can.tif

(cd autotest/cpp && make quick_test)

# install pip and use it to install test dependencies
pip3 install -U -r autotest/requirements.txt

projsync --system-directory --file us_noaa_conus.tif
projsync --system-directory --file us_nga_egm96

(cd autotest && $PYTEST)

2 changes: 1 addition & 1 deletion .github/workflows/ubuntu_18.04/before_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ docker run --name mariadb -e MYSQL_ROOT_PASSWORD=passwd -e "MYSQL_ROOT_HOST=%" -
# PostGIS
docker run -v /home:/home --name "postgis" -p 25432:5432 -e ALLOW_IP_RANGE=0.0.0.0/0 -d -t kartoza/postgis:13.0

sudo apt-get install -y --allow-unauthenticated python3-dev python3-pip python3-numpy libpng-dev libjpeg-dev libgif-dev liblzma-dev libgeos-dev libcurl4-gnutls-dev libproj-dev libxml2-dev libexpat-dev libxerces-c-dev libnetcdf-dev netcdf-bin libpoppler-dev libpoppler-private-dev libspatialite-dev gpsbabel swig libhdf4-alt-dev libhdf5-serial-dev poppler-utils libfreexl-dev unixodbc-dev libwebp-dev libepsilon-dev liblcms2-2 libpcre3-dev libcrypto++-dev libdap-dev libfyba-dev libkml-dev libmysqlclient-dev mysql-client-core-5.7 libogdi3.2-dev libcfitsio-dev openjdk-8-jdk libzstd1-dev ccache bash zip curl libpq-dev postgresql-client postgis cmake libssl-dev libboost-dev autoconf automake sqlite3 libopenexr-dev g++ fossil libgeotiff-dev libcharls-dev libopenjp2-7-dev libcairo2-dev doxygen
sudo apt-get install -y --allow-unauthenticated python3-dev python3-pip python3-numpy libpng-dev libjpeg-dev libgif-dev liblzma-dev libgeos-dev libcurl4-gnutls-dev libproj-dev libxml2-dev libexpat-dev libxerces-c-dev libnetcdf-dev netcdf-bin libpoppler-dev libpoppler-private-dev libspatialite-dev gpsbabel swig libhdf4-alt-dev libhdf5-serial-dev poppler-utils unixodbc-dev libwebp-dev libepsilon-dev liblcms2-2 libpcre3-dev libcrypto++-dev libdap-dev libfyba-dev libkml-dev libmysqlclient-dev mysql-client-core-5.7 libogdi3.2-dev libcfitsio-dev openjdk-8-jdk libzstd1-dev ccache bash zip curl libpq-dev postgresql-client postgis cmake libssl-dev libboost-dev autoconf automake sqlite3 libopenexr-dev g++ fossil libgeotiff-dev libcharls-dev libopenjp2-7-dev libcairo2-dev doxygen
# libheif-dev: strane linking errors (__cxa_init_primary_exception, std::thread::_State::~_State()) related to also linking to FileGDB API
# libpodofo-dev : FIXME incompatibilities at runtime with that version
#sudo apt-get install -y --allow-unauthenticated libsfcgal-dev
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/ubuntu_18.04/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ tar xzf mongo-c-driver-1.13.0.tar.gz && (cd mongo-c-driver-1.13.0 && mkdir build
# -DBSONCXX_POLY_USE_MNMLSTC=OFF -DBSONCXX_POLY_USE_STD=OFF -DBSONCXX_POLY_USE_STD_EXPERIMENTAL=OFF -DBSONCXX_POLY_USE_SYSTEM_MNMLSTC=OFF
tar xzf r3.4.0.tar.gz && (cd mongo-cxx-driver-r3.4.0 && mkdir build_cmake && cd build_cmake && CC='ccache gcc' CXX='ccache g++' cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBSONCXX_POLY_USE_BOOST=ON -DMONGOCXX_ENABLE_SLOW_TESTS=NO -DCMAKE_BUILD_TYPE=Debug && make -j3 && sudo make -j3 install)

# Build freexl
wget http://www.gaia-gis.it/gaia-sins/freexl-sources/freexl-2.0.0-RC0.tar.gz
tar xzf freexl-2.0.0-RC0.tar.gz
(cd freexl-2.0.0-RC0 && CC='ccache gcc' CXX='ccache g++' ./configure --disable-static --prefix=/usr && make -j3 && sudo make -j3 install)

# Build libspatialite
fossil clone https://www.gaia-gis.it/fossil/libspatialite libspatialite.fossil && mkdir sl && (cd sl && fossil open ../libspatialite.fossil && CC='ccache gcc' CXX='ccache g++' ./configure --disable-static --prefix=/usr --disable-geos370 --disable-rttopo && make -j3 && sudo make -j3 install)

Expand All @@ -31,7 +36,10 @@ fossil clone https://www.gaia-gis.it/fossil/librasterlite2 librasterlite2.fossil

# Build proj
(cd proj && ./autogen.sh && CC='ccache gcc' CXX='ccache g++' CFLAGS='-DPROJ_RENAME_SYMBOLS' CXXFLAGS='-DPROJ_RENAME_SYMBOLS' ./configure --disable-static --prefix=/usr/local || cat config.log && make -j3)
sudo sh -c "cd $PWD/proj && make -j3 install && mv /usr/local/lib/libproj.so.15.0.0 /usr/local/lib/libinternalproj.so.15.0.0 && rm /usr/local/lib/libproj.so* && rm /usr/local/lib/libproj.la && ln -s libinternalproj.so.15.0.0 /usr/local/lib/libinternalproj.so.15 && ln -s libinternalproj.so.15.0.0 /usr/local/lib/libinternalproj.so"
sudo sh -c "cd $PWD/proj && make -j3 install"
sudo sh -c "apt-get remove -y libproj-dev"

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

# Configure GDAL
CURRENT_DIR=$PWD
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/ubuntu_18.04_32bit/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if test -f "$WORK_DIR/ccache.tar.gz"; then
fi


sudo apt-get install -y --no-install-recommends --allow-unauthenticated python3-dev python3-setuptools python3-pip python3-numpy libpng-dev libjpeg-dev libgif-dev liblzma-dev libgeos-dev libcurl4-gnutls-dev libproj-dev libxml2-dev libexpat-dev libxerces-c-dev libnetcdf-dev netcdf-bin libpoppler-dev libpoppler-private-dev libspatialite-dev gpsbabel swig libhdf4-alt-dev libhdf5-serial-dev poppler-utils libfreexl-dev unixodbc-dev libwebp-dev libepsilon-dev liblcms2-2 libpcre3-dev libcrypto++-dev libdap-dev libfyba-dev libkml-dev libmysqlclient-dev mysql-client-core-5.7 libogdi3.2-dev libcfitsio-dev openjdk-8-jdk libzstd1-dev ccache bash zip curl libpq-dev postgresql-client postgis cmake libssl-dev libboost-dev autoconf automake sqlite3 libopenexr-dev g++ fossil libgeotiff-dev libcharls-dev libopenjp2-7-dev libcairo2-dev git libtool automake grep
sudo apt-get install -y --no-install-recommends --allow-unauthenticated python3-dev python3-setuptools python3-pip python3-numpy libpng-dev libjpeg-dev libgif-dev liblzma-dev libgeos-dev libcurl4-gnutls-dev libproj-dev libxml2-dev libexpat-dev libxerces-c-dev libnetcdf-dev netcdf-bin libpoppler-dev libpoppler-private-dev libspatialite-dev gpsbabel swig libhdf4-alt-dev libhdf5-serial-dev poppler-utils unixodbc-dev libwebp-dev libepsilon-dev liblcms2-2 libpcre3-dev libcrypto++-dev libdap-dev libfyba-dev libkml-dev libmysqlclient-dev mysql-client-core-5.7 libogdi3.2-dev libcfitsio-dev openjdk-8-jdk libzstd1-dev ccache bash zip curl libpq-dev postgresql-client postgis cmake libssl-dev libboost-dev autoconf automake sqlite3 libopenexr-dev g++ fossil libgeotiff-dev libcharls-dev libopenjp2-7-dev libcairo2-dev git libtool automake grep


SCRIPT_DIR=$(dirname "$0")
Expand All @@ -47,6 +47,11 @@ esac
ccache -M 1G
ccache -s

# Build freexl
wget http://www.gaia-gis.it/gaia-sins/freexl-sources/freexl-2.0.0-RC0.tar.gz
tar xzf freexl-2.0.0-RC0.tar.gz
(cd freexl-2.0.0-RC0 && CC='ccache gcc' CXX='ccache g++' ./configure --disable-static --prefix=/usr && make -j3 && sudo make -j3 install)

# Build libspatialite
fossil clone https://www.gaia-gis.it/fossil/libspatialite libspatialite.fossil && mkdir sl && (cd sl && fossil open ../libspatialite.fossil && CC='ccache gcc' CXX='ccache g++' ./configure --disable-static --prefix=/usr --disable-geos370 --disable-rttopo && make -j3 && sudo make -j3 install)

Expand All @@ -56,7 +61,10 @@ fossil clone https://www.gaia-gis.it/fossil/librasterlite2 librasterlite2.fossil
# Build proj

(git clone --depth 1 https://github.com/OSGeo/PROJ && cd PROJ && (cd data && curl http://download.osgeo.org/proj/proj-datumgrid-1.8.tar.gz > proj-datumgrid-1.8.tar.gz && tar xvzf proj-datumgrid-1.8.tar.gz) && ./autogen.sh && CC='ccache gcc' CXX='ccache g++' CFLAGS='-DPROJ_RENAME_SYMBOLS' CXXFLAGS='-DPROJ_RENAME_SYMBOLS' ./configure --disable-static --prefix=/usr/local || cat config.log && make -j3)
sudo sh -c "cd $PWD/PROJ && make -j3 install && mv /usr/local/lib/libproj.so.22.0.0 /usr/local/lib/libinternalproj.so.22.0.0 && rm /usr/local/lib/libproj.so* && rm /usr/local/lib/libproj.la && ln -s libinternalproj.so.22.0.0 /usr/local/lib/libinternalproj.so.19 && ln -s libinternalproj.so.22.0.0 /usr/local/lib/libinternalproj.so"
sudo sh -c "cd $PWD/PROJ && make -j3 install"
sudo sh -c "apt-get remove -y libproj-dev"

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

# Configure GDAL
CURRENT_DIR=$PWD
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/ubuntu_20.04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,22 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Get Architecture
id: get-arch
run: |
export ARCH=$(cc -march=native -### -E - < /dev/null 2>&1 | sed -ne 's/.*cc1 .*-march=\([^ "]*\)[ "].*/\1/p')
echo "Architecture: $ARCH"
echo "::set-output name=arch::$ARCH"
- name: Cache
uses: actions/cache@v2
id: cache
with:
path: |
/tmp/docker
${{ github.workspace }}/ccache.tar.gz
key: ${{ runner.os }}-cache-ubuntu-20.04-${{ hashFiles('.github/workflows/ubuntu_20.04/build-deps.sh') }}-${{ github.run_id }}
restore-keys: ${{ runner.os }}-cache-ubuntu-20.04-${{ hashFiles('.github/workflows/ubuntu_20.04/build-deps.sh') }}-
key: ${{ runner.os }}-cache-ubuntu-20.04-${{ steps.get-arch.outputs.arch }}-${{ hashFiles('.github/workflows/ubuntu_20.04/build-deps.sh') }}-${{ github.run_id }}
restore-keys: ${{ runner.os }}-cache-ubuntu-20.04-${{ steps.get-arch.outputs.arch }}-${{ hashFiles('.github/workflows/ubuntu_20.04/build-deps.sh') }}-

- name: Build or restore dependencies
run: |
Expand Down Expand Up @@ -58,11 +65,14 @@ jobs:
run: docker run --rm gdal sh -c "cd /build/gdal/swig/java && make test"

- name: Run SWIG CSharp tests
run: docker run --rm gdal sh -c "cd /build/gdal/swig/csharp && make && make && make test"
run: docker run --rm gdal sh -c "cd /build/gdal/swig/csharp && make && make test"

- name: Build Python sdist package
- name: Build GDAL Python sdist distribution
run: docker run --rm gdal sh -c "cd /build/gdal/swig/python && python3 setup.py sdist"

- name: Build gdal-utils Python bdist_wheel distribution
run: docker run --rm gdal sh -c "cd /build/gdal/swig/python/gdal-utils && python3 -m pip install wheel && python3 setup.py bdist_wheel"

- name: Run pytest
# --security-opt seccomp=unconfined, so that the userfaulfd syscall is available
run: docker run -e CI -e TRAVIS=yes -e TRAVIS_BRANCH=ubuntu_2004 -e GITHUB_WORKFLOW --security-opt seccomp=unconfined --rm gdal sh -c "cd /build/autotest && pip3 install -U -r requirements.txt && pytest"
28 changes: 27 additions & 1 deletion .github/workflows/ubuntu_20.04/build-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ DEBIAN_FRONTEND=noninteractive apt-get install -y --fix-missing --no-install-rec
libopenexr-dev libheif-dev \
libdeflate-dev \
mono-mcs libmono-system-drawing4.0-cil ccache \
perl ant
perl ant \
opencl-c-headers ocl-icd-opencl-dev

# Build likbkea
KEA_VERSION=1.4.13
Expand Down Expand Up @@ -82,4 +83,29 @@ wget -q https://github.com/Esri/file-geodatabase-api/raw/master/FileGDB_API_1.5.
&& rm -rf FileGDB_API_1_5_1-64gcc51.tar.gz \
&& echo "/usr/local/FileGDB_API/lib" > /etc/ld.so.conf.d/filegdbapi.conf

# Build and install GEOS (3.10dev)
GEOS_SHA1=cab7d3cc63dc6ffaa48630b517c9ab69be6505e0
mkdir geos \
&& wget -q https://github.com/libgeos/geos/archive/${GEOS_SHA1}.tar.gz -O - \
| tar xz -C geos --strip-components=1 \
&& cd geos \
&& mkdir build_cmake \
&& cd build_cmake \
&& cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF \
&& make -j$(nproc) \
&& make install \
&& cd ../.. \
&& rm -rf geos

# Install pdfium
wget -q https://github.com/rouault/pdfium_build_gdal_3_4/releases/download/v1_pdfium_4538/install-ubuntu2004-rev4538.tar.gz \
&& tar -xzf install-ubuntu2004-rev4538.tar.gz \
&& chown -R root:root install \
&& mv install/lib/* /usr/lib/ \
&& mv install/include/* /usr/include/ \
&& rm -rf install-ubuntu2004-rev4538.tar.gz install \
&& apt-get update -y \
&& apt-get install -y --fix-missing --no-install-recommends liblcms2-dev \
&& rm -rf /var/lib/apt/lists/*

ldconfig
16 changes: 4 additions & 12 deletions .github/workflows/ubuntu_20.04/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,7 @@ cd gdal
export CC="ccache gcc"
export CXX="ccache g++"

ARCH_FLAGS=""
if (g++ -march=native -dM -E -x c++ - < /dev/null | grep AVX2 >/dev/null); then
ARCH_FLAGS="-mavx2"
echo "-mavx2 enabled"
echo "Effective SSE/AVX flags:"
g++ -mavx2 -dM -E -x c++ - < /dev/null | grep -E 'SSE|AVX'
else
echo "AVX2 not available"
fi

CXXFLAGS="-std=c++17 -O1 $ARCH_FLAGS" CFLAGS="-O1 $ARCH_FLAGS" ./configure --prefix=/usr \
CXXFLAGS="-std=c++17 -march=native -O2" CFLAGS="-O2 -march=native" ./configure --prefix=/usr \
--without-libtool \
--with-hide-internal-symbols \
--with-jpeg12 \
Expand All @@ -48,7 +38,9 @@ CXXFLAGS="-std=c++17 -O1 $ARCH_FLAGS" CFLAGS="-O1 $ARCH_FLAGS" ./configure --pre
--with-crypto \
--with-ecw=/opt/libecwj2-3.3 \
--with-mrsid=/usr/local --with-jp2mrsid \
--with-fgdb=/usr/local/FileGDB_API
--with-fgdb=/usr/local/FileGDB_API \
--with-opencl \
--with-pdfium=/usr

make "-j$(nproc)" USER_DEFS=-Werror
(cd apps; make test_ogrsf USER_DEFS=-Werror)
Expand Down
26 changes: 16 additions & 10 deletions .github/workflows/windows_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
LIBDEFLATE_URL: "${{ matrix.LIBDEFLATE_URL }}"
APPVEYOR: true # to skip some tests
PYTHON_VERSION: "3.7.9"
ACTIONS_ALLOW_UNSECURE_COMMANDS: true # see https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

steps:

Expand Down Expand Up @@ -69,19 +68,19 @@ jobs:
$env:WIN64_ARG="WIN64=YES"
$env:CMAKE_ARCHITECTURE="x64"
}
echo "::set-env name=PATH::$env:PATH"
echo "::set-env name=ARCHITECTURE::$env:ARCHITECTURE"
echo "::set-env name=WIN64_ARG::$env:WIN64_ARG"
echo "::set-env name=CMAKE_ARCHITECTURE::$env:CMAKE_ARCHITECTURE"
echo "PATH=$env:PATH" >> $env:GITHUB_ENV
echo "ARCHITECTURE=$env:ARCHITECTURE" >> $env:GITHUB_ENV
echo "WIN64_ARG=$env:WIN64_ARG" >> $env:GITHUB_ENV
echo "CMAKE_ARCHITECTURE=$env:CMAKE_ARCHITECTURE" >> $env:GITHUB_ENV
- name: Set compiler environment
shell: cmd
run: |
if "%VS_VER%" == "2019" CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=%ARCHITECTURE%
echo ::set-env name=PATH::%PATH%
echo ::set-env name=INCLUDE::%INCLUDE%
echo ::set-env name=LIB::%LIB%
echo ::set-env name=LIBPATH::%LIBPATH%
echo PATH=%PATH%>> %GITHUB_ENV%
echo INCLUDE=%INCLUDE%>> %GITHUB_ENV%
echo LIB=%LIB%>> %GITHUB_ENV%
echo LIBPATH=%LIBPATH%>> %GITHUB_ENV%
- name: Detect AVX2
shell: bash
Expand Down Expand Up @@ -230,6 +229,9 @@ jobs:
exec { python setup.py build }
exec { python setup.py install }
cd $env:GITHUB_WORKSPACE\gdal\swig\csharp
dotnet nuget locals all --clear
dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org
dotnet restore
exec { nmake /f makefile.vc interface }
exec { nmake /f makefile.vc all $env:WIN64_ARG }
cd $env:GITHUB_WORKSPACE\autotest\cpp
Expand All @@ -247,7 +249,11 @@ jobs:
}
$env:SDK_PREFIX="$env:GITHUB_WORKSPACE\sdk\$env:SDK"
$env:SDK_BIN="$env:SDK_PREFIX\bin"
$env:PATH="$env:GITHUB_WORKSPACE\gdal;$env:GITHUB_WORKSPACE\gdal\apps;$env:SDK_PREFIX\dll;$env:SDK_PREFIX;$env:SDK_BIN;$env:PATH"
# Set USE_PATH_FOR_GDAL_PYTHON=YES and include a fake path in the PATH
# to test robustness to nonexistent paths (only relevant for python>=3.8)
# See https://github.com/OSGeo/gdal/issues/3898
$env:USE_PATH_FOR_GDAL_PYTHON="YES"
$env:PATH="$env:GITHUB_WORKSPACE\gdal;$env:GITHUB_WORKSPACE\gdal\apps;$env:SDK_PREFIX\dll;$env:SDK_PREFIX;$env:SDK_BIN;$env:GITHUB_WORKSPACE\not_a_real_path;$env:PATH"
$env:GDAL_DATA="$env:GITHUB_WORKSPACE\gdal\data"
$env:DO_NOT_FAIL_ON_RECODE_ERRORS="YES"
# The ca-bundle.crt file which we could point to is invalid in the current SDK
Expand Down
Loading

0 comments on commit 06abdf4

Please sign in to comment.