diff --git a/build/Build.cs b/build/Build.cs index 2d3885c..64b4299 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -4,6 +4,7 @@ using System.Runtime.InteropServices; using Nuke.Common; using Nuke.Common.Execution; +using Nuke.Common.Git; using Nuke.Common.IO; using Nuke.Common.ProjectModel; using Nuke.Common.Tooling; @@ -158,9 +159,12 @@ protected override void OnBuildInitialized() .DependsOn(DownloadBinaries) .Executes(() => { + var commitSha = GitRepository.FromLocalDirectory(RootDirectory).Commit; + // Build the architecture specific packages NuGetPack(c => c .SetVersion(VipsVersion) + .AddProperty("commit", commitSha) .SetOutputDirectory(ArtifactsDirectory) .AddProperty("NoWarn", "NU5128") .CombineWith(NuGetArchitectures, @@ -171,6 +175,7 @@ protected override void OnBuildInitialized() NuGetPack(c => c .SetTargetPath(RootDirectory / "build/native/NetVips.Native.nuspec") .SetVersion(VipsVersion) + .AddProperty("commit", commitSha) .SetOutputDirectory(ArtifactsDirectory) .AddProperty("NoWarn", "NU5128")); }); diff --git a/build/native/NetVips.Native.linux-arm.nuspec b/build/native/NetVips.Native.linux-arm.nuspec index 0451a10..da09181 100644 --- a/build/native/NetVips.Native.linux-arm.nuspec +++ b/build/native/NetVips.Native.linux-arm.nuspec @@ -9,7 +9,7 @@ This package complements the NetVips package and contains native binaries of libvips for Linux (ARMv7) Native binaries of libvips for Linux (ARMv7) https://kleisauke.github.io/net-vips - + libvips binaries image-processing diff --git a/build/native/NetVips.Native.linux-arm64.nuspec b/build/native/NetVips.Native.linux-arm64.nuspec index 851791d..52c5786 100644 --- a/build/native/NetVips.Native.linux-arm64.nuspec +++ b/build/native/NetVips.Native.linux-arm64.nuspec @@ -9,7 +9,7 @@ This package complements the NetVips package and contains native binaries of libvips for Linux (ARM64v8) Native binaries of libvips for Linux (ARM64v8) https://kleisauke.github.io/net-vips - + libvips binaries image-processing diff --git a/build/native/NetVips.Native.linux-musl-arm64.nuspec b/build/native/NetVips.Native.linux-musl-arm64.nuspec index ee36a3a..bdea6df 100644 --- a/build/native/NetVips.Native.linux-musl-arm64.nuspec +++ b/build/native/NetVips.Native.linux-musl-arm64.nuspec @@ -9,7 +9,7 @@ This package complements the NetVips package and contains native binaries of libvips for Linux musl (ARM64v8) Native binaries of libvips for Linux musl (ARM64v8) https://kleisauke.github.io/net-vips - + libvips binaries image-processing diff --git a/build/native/NetVips.Native.linux-musl-x64.nuspec b/build/native/NetVips.Native.linux-musl-x64.nuspec index ae087d6..3248805 100644 --- a/build/native/NetVips.Native.linux-musl-x64.nuspec +++ b/build/native/NetVips.Native.linux-musl-x64.nuspec @@ -9,7 +9,7 @@ This package complements the NetVips package and contains native binaries of libvips for Linux musl (x64) Native binaries of libvips for Linux musl (x64) https://kleisauke.github.io/net-vips - + libvips binaries image-processing diff --git a/build/native/NetVips.Native.linux-x64.nuspec b/build/native/NetVips.Native.linux-x64.nuspec index caa0448..14c27f9 100644 --- a/build/native/NetVips.Native.linux-x64.nuspec +++ b/build/native/NetVips.Native.linux-x64.nuspec @@ -9,7 +9,7 @@ This package complements the NetVips package and contains native binaries of libvips for Linux (x64) Native binaries of libvips for Linux (x64) https://kleisauke.github.io/net-vips - + libvips binaries image-processing diff --git a/build/native/NetVips.Native.nuspec b/build/native/NetVips.Native.nuspec index 2c89bee..706bbb6 100644 --- a/build/native/NetVips.Native.nuspec +++ b/build/native/NetVips.Native.nuspec @@ -9,7 +9,7 @@ This package complements the NetVips package and contains native binaries of libvips Native binaries of libvips https://kleisauke.github.io/net-vips - + libvips binaries image-processing diff --git a/build/native/NetVips.Native.osx-arm64.nuspec b/build/native/NetVips.Native.osx-arm64.nuspec index 74bf7cd..4ebb0fc 100644 --- a/build/native/NetVips.Native.osx-arm64.nuspec +++ b/build/native/NetVips.Native.osx-arm64.nuspec @@ -9,7 +9,7 @@ This package complements the NetVips package and contains native binaries of libvips for macOS (ARM64) Native binaries of libvips for macOS (ARM64) https://kleisauke.github.io/net-vips - + libvips binaries image-processing diff --git a/build/native/NetVips.Native.osx-x64.nuspec b/build/native/NetVips.Native.osx-x64.nuspec index ce4a586..3070ed6 100644 --- a/build/native/NetVips.Native.osx-x64.nuspec +++ b/build/native/NetVips.Native.osx-x64.nuspec @@ -9,7 +9,7 @@ This package complements the NetVips package and contains native binaries of libvips for macOS (x64) Native binaries of libvips for macOS (x64) https://kleisauke.github.io/net-vips - + libvips binaries image-processing diff --git a/build/native/NetVips.Native.win-arm64.nuspec b/build/native/NetVips.Native.win-arm64.nuspec index b9d39ac..7808e29 100644 --- a/build/native/NetVips.Native.win-arm64.nuspec +++ b/build/native/NetVips.Native.win-arm64.nuspec @@ -9,7 +9,7 @@ This package complements the NetVips package and contains native binaries of libvips for Windows (ARM64) Native binaries of libvips for Windows (ARM64) https://kleisauke.github.io/net-vips - + libvips binaries image-processing diff --git a/build/native/NetVips.Native.win-x64.net452.nuspec b/build/native/NetVips.Native.win-x64.net452.nuspec index 797f964..a82cdef 100644 --- a/build/native/NetVips.Native.win-x64.net452.nuspec +++ b/build/native/NetVips.Native.win-x64.net452.nuspec @@ -9,7 +9,7 @@ This package complements the NetVips package and contains native binaries of libvips for Windows (x64) Native binaries of libvips for Windows (x64) https://kleisauke.github.io/net-vips - + libvips binaries image-processing diff --git a/build/native/NetVips.Native.win-x64.nuspec b/build/native/NetVips.Native.win-x64.nuspec index 83e169b..927624d 100644 --- a/build/native/NetVips.Native.win-x64.nuspec +++ b/build/native/NetVips.Native.win-x64.nuspec @@ -9,7 +9,7 @@ This package complements the NetVips package and contains native binaries of libvips for Windows (x64) Native binaries of libvips for Windows (x64) https://kleisauke.github.io/net-vips - + libvips binaries image-processing diff --git a/build/native/NetVips.Native.win-x86.net452.nuspec b/build/native/NetVips.Native.win-x86.net452.nuspec index 4545846..3454297 100644 --- a/build/native/NetVips.Native.win-x86.net452.nuspec +++ b/build/native/NetVips.Native.win-x86.net452.nuspec @@ -9,7 +9,7 @@ This package complements the NetVips package and contains native binaries of libvips for Windows (x86) Native binaries of libvips for Windows (x86) https://kleisauke.github.io/net-vips - + libvips binaries image-processing diff --git a/build/native/NetVips.Native.win-x86.nuspec b/build/native/NetVips.Native.win-x86.nuspec index 58cd142..d86e006 100644 --- a/build/native/NetVips.Native.win-x86.nuspec +++ b/build/native/NetVips.Native.win-x86.nuspec @@ -9,7 +9,7 @@ This package complements the NetVips package and contains native binaries of libvips for Windows (x86) Native binaries of libvips for Windows (x86) https://kleisauke.github.io/net-vips - + libvips binaries image-processing