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
Remove all CI jobs except of Run-Tests.
Now that we don't use a nuspec to pack the C# library there are little reasons to specifically test it with a packed NuGet package.
The Release job also went away; it would upload the 0.0.0-local package. We need a dedicated release workflow.
  • Loading branch information
teo-tsirpanis committed Nov 16, 2022
commit c14741d5189f725f03a4fd2e1ea52e334196284e
92 changes: 1 addition & 91 deletions .github/workflows/tiledb-csharp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: TileDB-CSharp

on:
push:
tags: [ '*' ]
branches: [ main ]
pull_request:
branches: [ main ]
Expand Down Expand Up @@ -36,7 +35,7 @@ jobs:
# DotNet build
- name: Dotnet build for TileDB.CSharp
run: |
dotnet build /p:Platform=x64 -c Release sources/TileDB.CSharp
dotnet build -c Release sources/TileDB.CSharp

# DotNet test
- name: Test TileDB.CSharp
Expand All @@ -47,92 +46,3 @@ jobs:
shell: bash
run: |
find examples/ -name *.csproj | xargs -I{} dotnet run --project {} -f ${{ matrix.dotnet }}

Stage-Release-Candidate:
needs: Run-Tests
runs-on: ubuntu-latest
steps:
# Checks out repository
- uses: actions/checkout@v3

- name: Set up .NET SDK from global.json
uses: actions/setup-dotnet@v3

- name: Display dotnet versions
run: dotnet --info

# DotNet build
- name: Dotnet build for TileDB.CSharp
run: |
dotnet build /p:Platform=x64 -c Release sources/TileDB.CSharp

# DotNet pack
- name: Dotnet pack for TileDB.CSharp
run: |
dotnet pack ./sources/TileDB.CSharp/TileDB.CSharp.csproj -p:Version=0.0.0-local -c Release

- name: Archive nuget artifact
uses: actions/upload-artifact@v3
with:
name: TileDB NuGet Package
path: sources/TileDB.CSharp/lib/TileDB.CSharp.*.nupkg

Test-NuGet-Release:
needs: Stage-Release-Candidate
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
dotnet: ['net5.0', 'net6.0']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout TileDB-CSharp repository
uses: actions/checkout@v3

- name: Download TileDB.CSharp NuGet artifact
uses: actions/download-artifact@v3
with:
name: TileDB NuGet Package
path: packages

# GitHub runners come with several versions of .NET preinstalled; Remove them to target version
- name: Remove existing .NET versions
shell: bash
run: |
rm -rf $DOTNET_ROOT

- name: Set up .NET SDK from global.json
uses: actions/setup-dotnet@v3

- name: Display dotnet versions
run: dotnet --info

- name: Setup NuGet
uses: nuget/setup-nuget@v1

# Run tests using NuGet release candidate
- name: Test TileDB.CSharp
run: |
dotnet test -c Release tests/TileDB.CSharp.Test.NuGet -f ${{ matrix.dotnet }}

Release:
# Only run this job if a tag was provided
if: startsWith(github.ref, 'refs/tags/')
needs: Test-NuGet-Release
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: TileDB NuGet Package

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ./*.nupkg
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
body: ${{ steps.github_release.outputs.changelog }}
draft: false
prerelease: false
18 changes: 0 additions & 18 deletions tests/TileDB.CSharp.Test.NuGet/TileDB.CSharp.Test.NuGet.csproj

This file was deleted.

9 changes: 0 additions & 9 deletions tests/TileDB.CSharp.Test.NuGet/nuget.config

This file was deleted.