Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0c36a4c
Start writing an MSBuild script that creates NuGet packages for the c…
teo-tsirpanis Nov 14, 2022
1d7d3b0
Support creating the native packages.
teo-tsirpanis Nov 14, 2022
61b5178
Support creating the metapackage.
teo-tsirpanis Nov 15, 2022
2a06a80
(REMOVE BEFORE MERGE) Add a temporary MyGet feed for the TileDB nativ…
teo-tsirpanis Nov 15, 2022
b72b8dc
Use the TileDB Embedded page for the project URL in the native packages.
teo-tsirpanis Nov 15, 2022
cad8b05
Use the `TileDB.Native` NuGet package and remove the nuspec of `TileD…
teo-tsirpanis Nov 15, 2022
74a1520
Set `UseCurrentRuntimeIdentifier` in the executable projects.
teo-tsirpanis Nov 15, 2022
2ec7fe9
Restore the template packages.
teo-tsirpanis Nov 15, 2022
287a4ac
Remove the ValueSeparator hack.
teo-tsirpanis Nov 15, 2022
0e4ca34
Remove the "Install/Download tiledb" steps from CI.
teo-tsirpanis Nov 15, 2022
c14741d
Remove all CI jobs except of Run-Tests.
teo-tsirpanis Nov 16, 2022
3c33ffe
Remove RollForward from TileDB.CSharp.
teo-tsirpanis Nov 16, 2022
e655b26
Update package metadata and move them to a dedicated file.
teo-tsirpanis Nov 17, 2022
d0764a6
Add support for generating development editions of the native packages.
teo-tsirpanis Nov 17, 2022
4d85390
Enable Central Package Management with package source mapping.
teo-tsirpanis Nov 17, 2022
f848e09
Add release notes in the packages.
teo-tsirpanis Nov 17, 2022
8869749
Refactor the nightly build workflow to use native development NuGet p…
teo-tsirpanis Nov 17, 2022
fffdd3c
Update the repository README and add a package README.
teo-tsirpanis Nov 17, 2022
4f3601f
Require `Version` and `VersionTag` to be specified.
teo-tsirpanis Nov 17, 2022
f787a3c
Add a README describing the native NuGet package generator.
teo-tsirpanis Nov 17, 2022
abf0603
Demand Core version 2.12.x.
teo-tsirpanis Nov 23, 2022
e456ae3
Warn when building an RID-agnostic executable that uses `TileDB.CSharp`.
teo-tsirpanis Nov 24, 2022
ec1ddab
Remove the RID-specific build instructions in the metapackage's descr…
teo-tsirpanis Nov 24, 2022
24b425d
Remove the MyGet feed; we are now using the official TileDB binaries …
teo-tsirpanis Dec 1, 2022
dd9213a
Use MSBuild's custom item separator feature instead of a `string.Repl…
teo-tsirpanis Dec 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Support creating the native packages.
  • Loading branch information
teo-tsirpanis committed Nov 15, 2022
commit 1d7d3b077b540dd48db4e58a6d57f6b5fcde332a
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ indent_style = space
indent_size = 4
insert_final_newline = true

[*.{xml,*proj,props,targets,yml}]
[*.{xml,*proj,props,targets,yml,nuspec}]
indent_size = 2

[*.cs]
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ tiledb.pc
include
scripts/nuget/temp
*.binlog
*.nupkg
21 changes: 20 additions & 1 deletion scripts/nuget/GenerateNuGetPackages.proj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Pack">
<PropertyGroup>
<Version>2.12.2</Version>
<Version Condition="$(IsDev) == true">0.0.0-dev</Version>
Expand Down Expand Up @@ -39,6 +39,25 @@
Command="tar -xf @(DownloadedFile) -C $(ExtractDir)" />
</Target>

<Target Name="PackNativePackages"
DependsOnTargets="DownloadReleaseArtifacts"
Inputs="@(NativePlatform->'$(TempDir)/%(Identity)/%(LibraryPath)')"
Outputs="@(NativePlatform->'$(OutDir)/TileDB.Native.runtime.%(RuntimeId).$(Version).nupkg')">
<ItemGroup>
<ProjectsToBuild Include="TileDB.Native.runtime.template.proj"
AdditionalProperties="RuntimeId=%(NativePlatform.RuntimeId);NativeLibraryPath=$(TempDir)/%(NativePlatform.Identity)/%(NativePlatform.LibraryPath)" />
</ItemGroup>

<MSBuild
Projects="@(ProjectsToBuild)"
BuildInParallel="true"
Targets="Pack"
Properties="PackageOutputPath=$(OutDir);Version=$(Version)" />
</Target>

<Target Name="Pack"
DependsOnTargets="PackNativePackages" />

<Target Name="Clean">
<RemoveDir Directories="$(TempDir);$(OutDir)" />
</Target>
Expand Down
19 changes: 19 additions & 0 deletions scripts/nuget/TileDB.Native.runtime.template.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>TileDB.Native.runtime.$rid$</id>
<version>$version$</version>
<authors>TileDB Inc</authors>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="expression">MIT</license>
<icon>logo.png</icon>
<projectUrl>https://tiledb.com</projectUrl>
<repository type="git" url="https://github.com/TileDB-Inc/TileDB" />
<description>Native binaries of TileDB Embedded for $rid$.</description>
<tags>tiledb</tags>
</metadata>
<files>
<file src="../../art/logo.png" target=""/>
<file src="$nativelib$" target="runtimes/$rid$/native"/>
</files>
</package>
9 changes: 9 additions & 0 deletions scripts/nuget/TileDB.Native.runtime.template.proj
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<NoBuild>true</NoBuild>
<IncludeBuildOutput>false</IncludeBuildOutput>
<TargetFramework>netstandard2.0</TargetFramework>
<NuspecFile>TileDB.Native.runtime.template.nuspec</NuspecFile>
<NuspecProperties>rid=$(RuntimeId);version=$(Version);nativelib=$(NativeLibraryPath)</NuspecProperties>
</PropertyGroup>
</Project>