3636 cache-name : cmake-ubuntu-jammy
3737 steps :
3838 - name : Checkout GDAL
39- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
39+ uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6 .0.0
4040 - name : Setup cache
41- uses : actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
41+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
4242 id : cache
4343 with :
4444 path : ${{ github.workspace }}/.ccache
@@ -317,9 +317,9 @@ jobs:
317317 run : |
318318 git config --global core.autocrlf false
319319 - name : Checkout GDAL
320- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
320+ uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6 .0.0
321321 - name : Install development packages
322- uses : msys2/setup-msys2@fb197b72ce45fb24f17bf3f807a388985654d1f2 # v2.29 .0
322+ uses : msys2/setup-msys2@4f806de0a5a7294ffabaff804b38a9b435a73bda # v2.30 .0
323323 with :
324324 msystem : MINGW64
325325 update : true
@@ -332,7 +332,7 @@ jobs:
332332 mingw-w64-x86_64-libgeotiff mingw-w64-x86_64-libpng mingw-w64-x86_64-libtiff mingw-w64-x86_64-openjpeg2
333333 mingw-w64-x86_64-python-pip mingw-w64-x86_64-python-numpy mingw-w64-x86_64-python-pytest mingw-w64-x86_64-python-setuptools mingw-w64-x86_64-swig mingw-w64-x86_64-python-psutil mingw-w64-x86_64-blosc mingw-w64-x86_64-libavif
334334 - name : Setup cache
335- uses : actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
335+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
336336 id : cache
337337 with :
338338 path : ${{ github.workspace }}\.ccache
@@ -376,19 +376,19 @@ jobs:
376376 - name : Build
377377 run : cmake --build build -j 3
378378 working-directory : ${{ github.workspace }}
379- - name : test
380- run : cmake --build build --target quicktest
381- working-directory : ${{ github.workspace }}
382- - name : test (with ctest)
383- run : |
384- ctest --test-dir $GITHUB_WORKSPACE/build -C Release -V -j 3
385- env :
386- BUILD_NAME : mingw64
387- SKIP_OGR_GMLAS_HUGE_PROCESSING_TIME : YES
388- SKIP_OGR_GMLAS_HTTP_RELATED : YES
389- SKIP_TIFF_JPEG12 : YES
390- SKIP_VSIRAR : YES
391- working-directory : ${{ github.workspace }}
379+ # - name: test
380+ # run: cmake --build build --target quicktest
381+ # working-directory: ${{ github.workspace }}
382+ # - name: test (with ctest)
383+ # run: |
384+ # ctest --test-dir $GITHUB_WORKSPACE/build -C Release -V -j 3
385+ # env:
386+ # BUILD_NAME: mingw64
387+ # SKIP_OGR_GMLAS_HUGE_PROCESSING_TIME: YES
388+ # SKIP_OGR_GMLAS_HTTP_RELATED: YES
389+ # SKIP_TIFF_JPEG12: YES
390+ # SKIP_VSIRAR: YES
391+ # working-directory: ${{ github.workspace }}
392392 - name : Install
393393 run : cmake --build build --target install -j 3
394394 working-directory : ${{ github.workspace }}
@@ -412,7 +412,7 @@ jobs:
412412 run : |
413413 git config --global core.autocrlf false
414414 - name : Checkout GDAL
415- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
415+ uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6 .0.0
416416 - uses : ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
417417 - name : populate JAVA_HOME
418418 shell : pwsh
@@ -478,8 +478,8 @@ jobs:
478478 - name : test (with ctest)
479479 shell : bash -l {0}
480480 run : |
481- # Exclude doc spellcheck as it crashes
482- ctest --test-dir $GITHUB_WORKSPACE/build -C Release -V -j 3 -E spelling
481+ # Exclude doc spellcheck and example tests as they crash
482+ ctest --test-dir $GITHUB_WORKSPACE/build -C Release -V -j 3 -E doc
483483 env :
484484 SKIP_OGR_GMLAS_HUGE_PROCESSING_TIME : YES
485485 SKIP_OGR_GMLAS_HTTP_RELATED : YES
@@ -528,7 +528,7 @@ jobs:
528528 run : |
529529 git config --global core.autocrlf false
530530 - name : Checkout GDAL
531- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
531+ uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6 .0.0
532532 - uses : conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
533533 with :
534534 activate-environment : gdalenv
@@ -539,16 +539,23 @@ jobs:
539539 - name : Install dependency
540540 shell : bash -l {0}
541541 run : |
542- conda install --yes --quiet proj pytest pytest-env pytest-benchmark filelock lxml cmake setuptools
542+ conda install --yes --quiet proj python=3.12 swig pytest pytest-env pytest-benchmark filelock lxml cmake setuptools
543543 - name : Check CMake version
544544 shell : bash -l {0}
545545 run : |
546546 cmake --version
547+
548+ - name : Remove conflicting libraries
549+ shell : bash -l {0}
550+ run : |
551+ rm -rf C:/Strawberry || /bin/true
552+ rm -rf "C:/Program Files/OpenSSL/lib" || /bin/true
553+
547554 - name : Configure
548555 shell : bash -l {0}
549556 run : |
550557 mkdir -p $GITHUB_WORKSPACE/build
551- cmake -A ${architecture} -G "${generator}" "-DCMAKE_PREFIX_PATH=${CONDA}/envs/gdalenv" -Werror=dev "-DCMAKE_CXX_COMPILER_LAUNCHER=clcache" -DCMAKE_UNITY_BUILD=${CMAKE_UNITY_BUILD} -S "$GITHUB_WORKSPACE" -B "$GITHUB_WORKSPACE/build" -DCMAKE_C_FLAGS=" /WX" -DCMAKE_CXX_FLAGS=" /WX" -DGDAL_USE_EXTERNAL_LIBS:BOOL=OFF -DWERROR_DEV_FLAG="-Werror=dev"
558+ cmake -A ${architecture} -G "${generator}" "-DCMAKE_PREFIX_PATH=${CONDA}/envs/gdalenv" -Werror=dev "-DCMAKE_CXX_COMPILER_LAUNCHER=clcache" -DCMAKE_UNITY_BUILD=${CMAKE_UNITY_BUILD} -S "$GITHUB_WORKSPACE" -B "$GITHUB_WORKSPACE/build" -DCMAKE_C_FLAGS=" /WX" -DCMAKE_CXX_FLAGS=" /WX" -DGDAL_USE_EXTERNAL_LIBS:BOOL=OFF -DWERROR_DEV_FLAG="-Werror=dev" -DCMAKE_CXX_STANDARD=20
552559 - name : Build
553560 shell : bash -l {0}
554561 run : cmake --build $GITHUB_WORKSPACE/build --config RelWithDebInfo -j 2
@@ -612,9 +619,9 @@ jobs:
612619 with :
613620 xcode-version : ' 15.4.0'
614621 - name : Checkout GDAL
615- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
622+ uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6 .0.0
616623 - name : Setup cache
617- uses : actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
624+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
618625 id : cache
619626 with :
620627 path : ${{ github.workspace }}/.ccache
@@ -699,11 +706,11 @@ jobs:
699706 run : |
700707 git config --global core.autocrlf false
701708 - name : Checkout GDAL
702- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
709+ uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6 .0.0
703710 - uses : conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
704711 with :
705712 activate-environment : gdalenv
706- python-version : 3.9
713+ python-version : " 3.10 "
707714 channels : conda-forge
708715 - name : Install dependency
709716 shell : bash -l {0}
0 commit comments