Skip to content

Commit

Permalink
Include commit SHA in NetVips.Native* packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Oct 22, 2024
1 parent e9f5bc3 commit 2c4ce8a
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 13 deletions.
5 changes: 5 additions & 0 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand All @@ -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"));
});
Expand Down
2 changes: 1 addition & 1 deletion build/native/NetVips.Native.linux-arm.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<description>This package complements the NetVips package and contains native binaries of libvips for Linux (ARMv7)</description>
<summary>Native binaries of libvips for Linux (ARMv7)</summary>
<projectUrl>https://kleisauke.github.io/net-vips</projectUrl>
<repository type="git" url="https://github.com/kleisauke/net-vips" />
<repository type="git" url="https://github.com/kleisauke/net-vips" commit="$commit$" />
<tags>libvips binaries image-processing</tags>

<!-- legal -->
Expand Down
2 changes: 1 addition & 1 deletion build/native/NetVips.Native.linux-arm64.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<description>This package complements the NetVips package and contains native binaries of libvips for Linux (ARM64v8)</description>
<summary>Native binaries of libvips for Linux (ARM64v8)</summary>
<projectUrl>https://kleisauke.github.io/net-vips</projectUrl>
<repository type="git" url="https://github.com/kleisauke/net-vips" />
<repository type="git" url="https://github.com/kleisauke/net-vips" commit="$commit$" />
<tags>libvips binaries image-processing</tags>

<!-- legal -->
Expand Down
2 changes: 1 addition & 1 deletion build/native/NetVips.Native.linux-musl-arm64.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<description>This package complements the NetVips package and contains native binaries of libvips for Linux musl (ARM64v8)</description>
<summary>Native binaries of libvips for Linux musl (ARM64v8)</summary>
<projectUrl>https://kleisauke.github.io/net-vips</projectUrl>
<repository type="git" url="https://github.com/kleisauke/net-vips" />
<repository type="git" url="https://github.com/kleisauke/net-vips" commit="$commit$" />
<tags>libvips binaries image-processing</tags>

<!-- legal -->
Expand Down
2 changes: 1 addition & 1 deletion build/native/NetVips.Native.linux-musl-x64.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<description>This package complements the NetVips package and contains native binaries of libvips for Linux musl (x64)</description>
<summary>Native binaries of libvips for Linux musl (x64)</summary>
<projectUrl>https://kleisauke.github.io/net-vips</projectUrl>
<repository type="git" url="https://github.com/kleisauke/net-vips" />
<repository type="git" url="https://github.com/kleisauke/net-vips" commit="$commit$" />
<tags>libvips binaries image-processing</tags>

<!-- legal -->
Expand Down
2 changes: 1 addition & 1 deletion build/native/NetVips.Native.linux-x64.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<description>This package complements the NetVips package and contains native binaries of libvips for Linux (x64)</description>
<summary>Native binaries of libvips for Linux (x64)</summary>
<projectUrl>https://kleisauke.github.io/net-vips</projectUrl>
<repository type="git" url="https://github.com/kleisauke/net-vips" />
<repository type="git" url="https://github.com/kleisauke/net-vips" commit="$commit$" />
<tags>libvips binaries image-processing</tags>

<!-- legal -->
Expand Down
2 changes: 1 addition & 1 deletion build/native/NetVips.Native.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<description>This package complements the NetVips package and contains native binaries of libvips</description>
<summary>Native binaries of libvips</summary>
<projectUrl>https://kleisauke.github.io/net-vips</projectUrl>
<repository type="git" url="https://github.com/kleisauke/net-vips" />
<repository type="git" url="https://github.com/kleisauke/net-vips" commit="$commit$" />
<tags>libvips binaries image-processing</tags>

<!-- legal -->
Expand Down
2 changes: 1 addition & 1 deletion build/native/NetVips.Native.osx-arm64.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<description>This package complements the NetVips package and contains native binaries of libvips for macOS (ARM64)</description>
<summary>Native binaries of libvips for macOS (ARM64)</summary>
<projectUrl>https://kleisauke.github.io/net-vips</projectUrl>
<repository type="git" url="https://github.com/kleisauke/net-vips" />
<repository type="git" url="https://github.com/kleisauke/net-vips" commit="$commit$" />
<tags>libvips binaries image-processing</tags>

<!-- legal -->
Expand Down
2 changes: 1 addition & 1 deletion build/native/NetVips.Native.osx-x64.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<description>This package complements the NetVips package and contains native binaries of libvips for macOS (x64)</description>
<summary>Native binaries of libvips for macOS (x64)</summary>
<projectUrl>https://kleisauke.github.io/net-vips</projectUrl>
<repository type="git" url="https://github.com/kleisauke/net-vips" />
<repository type="git" url="https://github.com/kleisauke/net-vips" commit="$commit$" />
<tags>libvips binaries image-processing</tags>

<!-- legal -->
Expand Down
2 changes: 1 addition & 1 deletion build/native/NetVips.Native.win-arm64.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<description>This package complements the NetVips package and contains native binaries of libvips for Windows (ARM64)</description>
<summary>Native binaries of libvips for Windows (ARM64)</summary>
<projectUrl>https://kleisauke.github.io/net-vips</projectUrl>
<repository type="git" url="https://github.com/kleisauke/net-vips" />
<repository type="git" url="https://github.com/kleisauke/net-vips" commit="$commit$" />
<tags>libvips binaries image-processing</tags>

<!-- legal -->
Expand Down
2 changes: 1 addition & 1 deletion build/native/NetVips.Native.win-x64.net452.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<description>This package complements the NetVips package and contains native binaries of libvips for Windows (x64)</description>
<summary>Native binaries of libvips for Windows (x64)</summary>
<projectUrl>https://kleisauke.github.io/net-vips</projectUrl>
<repository type="git" url="https://github.com/kleisauke/net-vips" />
<repository type="git" url="https://github.com/kleisauke/net-vips" commit="$commit$" />
<tags>libvips binaries image-processing</tags>

<!-- legal -->
Expand Down
2 changes: 1 addition & 1 deletion build/native/NetVips.Native.win-x64.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<description>This package complements the NetVips package and contains native binaries of libvips for Windows (x64)</description>
<summary>Native binaries of libvips for Windows (x64)</summary>
<projectUrl>https://kleisauke.github.io/net-vips</projectUrl>
<repository type="git" url="https://github.com/kleisauke/net-vips" />
<repository type="git" url="https://github.com/kleisauke/net-vips" commit="$commit$" />
<tags>libvips binaries image-processing</tags>

<!-- legal -->
Expand Down
2 changes: 1 addition & 1 deletion build/native/NetVips.Native.win-x86.net452.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<description>This package complements the NetVips package and contains native binaries of libvips for Windows (x86)</description>
<summary>Native binaries of libvips for Windows (x86)</summary>
<projectUrl>https://kleisauke.github.io/net-vips</projectUrl>
<repository type="git" url="https://github.com/kleisauke/net-vips" />
<repository type="git" url="https://github.com/kleisauke/net-vips" commit="$commit$" />
<tags>libvips binaries image-processing</tags>

<!-- legal -->
Expand Down
2 changes: 1 addition & 1 deletion build/native/NetVips.Native.win-x86.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<description>This package complements the NetVips package and contains native binaries of libvips for Windows (x86)</description>
<summary>Native binaries of libvips for Windows (x86)</summary>
<projectUrl>https://kleisauke.github.io/net-vips</projectUrl>
<repository type="git" url="https://github.com/kleisauke/net-vips" />
<repository type="git" url="https://github.com/kleisauke/net-vips" commit="$commit$" />
<tags>libvips binaries image-processing</tags>

<!-- legal -->
Expand Down

0 comments on commit 2c4ce8a

Please sign in to comment.