Skip to content

Commit d3ce456

Browse files
Revert floating the Core's version in tests and fix CI. (#417)
* Revert floating the Core's version in tests. Fixes nightly builds. * Force running .NET 5 examples in x64. .NET 5 does not support macOS in Apple Silicon. * Fix typo. * Update nightlies to build packages with arm64 RID. * Target only .NET 6 for the examples.
1 parent 8ecad0c commit d3ce456

File tree

4 files changed

+11
-16
lines changed

4 files changed

+11
-16
lines changed

.github/workflows/nightly.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- os: ubuntu-latest
2424
platform: linux-x86_64
2525
- os: macos-latest
26-
platform: macos-x86_64
26+
platform: macos-arm64
2727
- os: windows-latest
2828
platform: windows-x86_64
2929
- tag: dev
@@ -142,11 +142,7 @@ jobs:
142142
- name: Test TileDB-CSharp
143143
run: dotnet test tests/TileDB.CSharp.Test/TileDB.CSharp.Test.csproj -c Release
144144

145-
- name: Run examples (.NET 5)
146-
shell: bash
147-
run: find examples/ -name *.csproj | xargs -I{} dotnet run --project {} -f net5.0
148-
149-
- name: Run examples (.NET 6)
145+
- name: Run examples
150146
shell: bash
151147
run: find examples/ -name *.csproj | xargs -I{} dotnet run --project {} -f net6.0
152148

.github/workflows/tiledb-csharp.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,7 @@ jobs:
6363
run: |
6464
dotnet test -c Release tests/TileDB.CSharp.Test
6565
66-
- name: Run examples (.NET 5)
66+
- name: Run examples
6767
shell: bash
6868
run: |
69-
find examples/ -name *.csproj | xargs -I{} dotnet run --project {} -f net5.0
70-
71-
- name: Run examples (.NET 6)
72-
shell: bash
73-
run: |
74-
find examples/ -name *.csproj | xargs -I{} dotnet run --project {} -f net5.0
69+
find examples/ -name *.csproj | xargs -I{} dotnet run --project {} -f net6.0

examples/TileDB.CSharp.Example/TileDB.CSharp.Example.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<OutputType>Exe</OutputType>
55
<RollForward>Major</RollForward>
66
<RootNamespace>TileDB.CSharp.Examples</RootNamespace>
7-
<TargetFrameworks>net5.0;net6.0;net7.0</TargetFrameworks>
7+
<TargetFramework>net6.0</TargetFramework>
88
<UseCurrentRuntimeIdentifier>true</UseCurrentRuntimeIdentifier>
99
</PropertyGroup>
1010

tests/TileDB.CSharp.Test/TileDB.CSharp.Test.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<IsPackable>false</IsPackable>
44
<Nullable>enable</Nullable>
@@ -20,6 +20,10 @@
2020

2121
<ItemGroup>
2222
<ProjectReference Include="..\..\sources\TileDB.CSharp\TileDB.CSharp.csproj" />
23-
<PackageVersion Include="TileDB.Native" Version="$(TileDBNativeVersionMajor).$(TileDBNativeVersionMajor).*" />
23+
<!-- To run tests with a TileDB patch, uncomment the following lines: -->
24+
<!--
25+
<PackageReference Include="TileDB.Native" />
26+
<PackageVersion Update="TileDB.Native" Version="<version>" />
27+
-->
2428
</ItemGroup>
2529
</Project>

0 commit comments

Comments
 (0)