Skip to content

Commit 28d604a

Browse files
authored
GDAL v3.10.1 (#176)
* Bump GDAL version * Disable warnings for hdf,proj,gdal * Bump package versions in tests * Drop proj-datum (deprecated) * Consolidate variables on Windows * Updating workflows with optional jobs for targets * Enable new launch settings in VSCode
1 parent dbf6c11 commit 28d604a

File tree

13 files changed

+61
-44
lines changed

13 files changed

+61
-44
lines changed

.github/workflows/macos.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@ on:
1212
is-version-branch:
1313
type: boolean
1414
required: true
15+
skip:
16+
type: boolean
17+
required: true
1518

1619
env:
1720
DOTNET_INSTALL_DIR: ${{ github.workspace }}/.dotnet/
1821
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg-archives/
1922

2023
jobs:
2124
BuildNugetPackages-MacOS:
25+
if: ${{ ! inputs.skip }}
2226
strategy:
2327
matrix:
2428
os: [macos-14, macos-13]

.github/workflows/main.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,36 @@ jobs:
2626
is-pre-release: ${{ steps.set.outputs.is_pre_release }}
2727
dotnet-version: ${{ steps.set.outputs.dotnet_version }}
2828
is-version-branch: ${{ steps.set.outputs.is_version_branch }}
29+
skip-unix: ${{ steps.set.outputs.skip_unix }}
30+
skip-windows: ${{ steps.set.outputs.skip_windows }}
31+
skip-osx: ${{ steps.set.outputs.skip_osx }}
2932
steps:
33+
- name: Checkout repository
34+
uses: actions/checkout@v4
35+
with:
36+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
37+
3038
- name: Set env for the reusable workflows
3139
id: set
3240
run: |
33-
echo "is_pre_release=$IS_PRE_RELEASE" >> $GITHUB_OUTPUT
41+
echo "is_pre_release=$IS_PRE_RELEASE" >> $GITHUB_OUTPUT
3442
echo "dotnet_version=$DOTNET_VERSION" >> $GITHUB_OUTPUT
3543
if [[ ${{ github.ref }} =~ ^refs/heads/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
3644
echo "is_version_branch=true" >> $GITHUB_OUTPUT
3745
else
3846
echo "is_version_branch=false" >> $GITHUB_OUTPUT
39-
fi
47+
fi;
48+
# Skip build for specific OS
49+
git log -1 --pretty=format:"%B" | cat
50+
for os in unix windows osx; do
51+
if git log -1 --pretty=format:"%B" | grep -Eq "\[(skip|no) $os\]|\[$os skip\]"; then
52+
echo "skip_$os=true" >> $GITHUB_OUTPUT
53+
echo "Skip build for $os"
54+
else
55+
echo "skip_$os=false" >> $GITHUB_OUTPUT
56+
echo "Building for $os"
57+
fi
58+
done
4059
4160
LinuxBuild:
4261
needs: env-context
@@ -46,6 +65,7 @@ jobs:
4665
is-pre-release: ${{ fromJSON(needs.env-context.outputs.is-pre-release) }}
4766
dotnet-version: ${{ needs.env-context.outputs.dotnet-version }}
4867
is-version-branch: ${{ fromJSON(needs.env-context.outputs.is-version-branch) }}
68+
skip: ${{ fromJSON(needs.env-context.outputs.skip-unix) }}
4969

5070
WindowsBuild:
5171
needs: env-context
@@ -55,6 +75,7 @@ jobs:
5575
is-pre-release: ${{ fromJSON(needs.env-context.outputs.is-pre-release) }}
5676
dotnet-version: ${{ needs.env-context.outputs.dotnet-version }}
5777
is-version-branch: ${{ fromJSON(needs.env-context.outputs.is-version-branch) }}
78+
skip: ${{ fromJSON(needs.env-context.outputs.skip-windows) }}
5879

5980
MacOSBuild:
6081
needs: env-context
@@ -64,6 +85,7 @@ jobs:
6485
is-pre-release: ${{ fromJSON(needs.env-context.outputs.is-pre-release) }}
6586
dotnet-version: ${{ needs.env-context.outputs.dotnet-version }}
6687
is-version-branch: ${{ fromJSON(needs.env-context.outputs.is-version-branch) }}
88+
skip: ${{ fromJSON(needs.env-context.outputs.skip-osx) }}
6789

6890
TestAndPushPackages:
6991
needs: [env-context, LinuxBuild, WindowsBuild, MacOSBuild]

.github/workflows/unix.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
is-version-branch:
1313
type: boolean
1414
required: true
15+
skip:
16+
type: boolean
17+
required: true
1518

1619
env:
1720
DOCKER_REGISTRY: ghcr.io/maxrev-dev
@@ -22,6 +25,7 @@ permissions:
2225

2326
jobs:
2427
BuildNugetPackages-Linux:
28+
if: ${{ ! inputs.skip }}
2529
strategy:
2630
matrix:
2731
include:

.github/workflows/windows.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@ on:
1212
is-version-branch:
1313
type: boolean
1414
required: true
15+
skip:
16+
type: boolean
17+
required: true
1518

1619
env:
1720
DOTNET_INSTALL_DIR: ${{ github.workspace }}/.dotnet
1821
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg-archives/
1922

2023
jobs:
2124
BuildNugetPackages-Windows:
25+
if: ${{ ! inputs.skip }}
2226
strategy:
2327
matrix:
2428
os: [windows-latest]

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"*makefile": "makefile",
55
"*.opt": "makefile",
66
},
7-
"files.trimTrailingWhitespace": false
7+
"files.trimTrailingWhitespace": false,
8+
"csharp.preview.improvedLaunchExperience": true
89
}

osx/gdal-makefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ configure_hdf:
9999
@cd $(HDF_CMAKE_TMP) && cmake $(HDF_SOURCE) \
100100
-DCMAKE_INSTALL_PREFIX=$(BUILD_ROOT)/hdf-build -Wno-dev \
101101
-DCMAKE_BUILD_TYPE=Release \
102-
-DCMAKE_C_FLAGS="-fPIC" \
103-
-DCMAKE_CXX_FLAGS="-fPIC" \
102+
-DCMAKE_C_FLAGS="-fPIC -w" \
104103
-DCMAKE_PREFIX_PATH=$(VCPKG_INSTALLED_DYNAMIC) \
105104
-DCMAKE_OSX_DEPLOYMENT_TARGET=$(OSX_DEPLOYMENT_TARGET) || exit 1
106105

@@ -124,8 +123,8 @@ configure_gdal:
124123
@cd $(GDAL_CMAKE_TMP) && cmake $(GDAL_ROOT) \
125124
-DCMAKE_INSTALL_PREFIX=$(BUILD_ROOT)/gdal-build -Wno-dev \
126125
-DCMAKE_BUILD_TYPE=Release \
127-
-DCMAKE_C_FLAGS="-fPIC" \
128-
-DCMAKE_CXX_FLAGS="-fPIC" \
126+
-DCMAKE_C_FLAGS="-fPIC -w" \
127+
-DCMAKE_CXX_FLAGS="-fPIC -w" \
129128
-DGDAL_USE_DEFLATE=OFF \
130129
-DGDAL_USE_ZLIB_INTERNAL=ON \
131130
-DGDAL_CSHARP_APPS=OFF \
@@ -166,8 +165,8 @@ configure_proj:
166165
cmake $(PROJ_ROOT) \
167166
-DCMAKE_BUILD_TYPE=Release -Wno-dev \
168167
-DCMAKE_MAKE_PROGRAM=make \
169-
-DCMAKE_C_FLAGS="-Wno-deprecated-declarations" \
170-
-DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations" \
168+
-DCMAKE_C_FLAGS="-w" \
169+
-DCMAKE_CXX_FLAGS="-w" \
171170
-DCMAKE_INSTALL_PREFIX=$(PROJ_BUILD) \
172171
-DBUILD_TESTING=OFF \
173172
-DBUILD_SHARED_LIBS=ON \

shared/GdalCore.opt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ BUILD_NUMBER_TAIL=100
99
### build (drivers) root
1010
BUILD_ROOT=$(ROOTDIR_)/build-$(BASE_RID)
1111

12-
# Oct 14, 2024
13-
GDAL_VERSION=3.10.0
12+
# Jan 13, 2025
13+
GDAL_VERSION=3.10.1
1414
GDAL_ROOT=$(BUILD_ROOT)/gdal-source
1515
GDAL_REPO=https://github.com/OSGeo/gdal.git
1616
GDAL_COMMIT_VER=v$(GDAL_VERSION)
1717

18-
# Sep 15, 2024
19-
PROJ_VERSION=9.5.0
18+
# Dec 1, 2024
19+
PROJ_VERSION=9.5.1
2020
PROJ_ROOT=$(BUILD_ROOT)/proj-source
2121
PROJ_REPO=https://github.com/OSGeo/PROJ.git
2222
PROJ_COMMIT_VER=$(PROJ_VERSION)
@@ -25,7 +25,7 @@ PROJ_COMMIT_VER=$(PROJ_VERSION)
2525

2626
VCPKG_ROOT=$(BUILD_ROOT)/vcpkg
2727
VCPKG_REPO=https://github.com/microsoft/vcpkg.git
28-
VCPKG_COMMIT_VER=2024.10.21
28+
VCPKG_COMMIT_VER=2025.01.13
2929

3030
# base requirements for all runtimes
3131
VCPKG_REQUIRE=geos "tiff[zstd,zip,jpeg,tools,lzma,cxx,webp]" curl "poppler[cairo,cms,zlib,glib,curl,private-api]"

tests/MaxRev.Gdal.Core.Tests.AzureFunctions/MaxRev.Gdal.Core.Tests.AzureFunctions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<_FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput>
88
</PropertyGroup>
99
<ItemGroup>
10-
<PackageReference Include="MaxRev.Gdal.Universal" Version="3.9.3.*" />
10+
<PackageReference Include="MaxRev.Gdal.Universal" Version="3.10.1.*" />
1111
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.1.3" />
1212
</ItemGroup>
1313
<ItemGroup>

tests/MaxRev.Gdal.Core.Tests.XUnit/MaxRev.Gdal.Core.Tests.XUnit.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Platforms>x64;arm64</Platforms>
88
</PropertyGroup>
99
<ItemGroup>
10-
<PackageReference Include="MaxRev.Gdal.Universal" Version="3.9.3.*" />
10+
<PackageReference Include="MaxRev.Gdal.Universal" Version="3.10.1.*" />
1111
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
1212
<PackageReference Include="xunit" Version="2.4.1" />
1313
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">

tests/MaxRev.Gdal.Core.Tests/MaxRev.Gdal.Core.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<RootNamespace>MaxRev.Gdal.Core.Tests</RootNamespace>
99
</PropertyGroup>
1010
<ItemGroup>
11-
<PackageReference Include="MaxRev.Gdal.Universal" Version="3.9.3.*" />
11+
<PackageReference Include="MaxRev.Gdal.Universal" Version="3.10.1.*" />
1212
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.17.0" />
1313
</ItemGroup>
1414
</Project>

0 commit comments

Comments
 (0)