Skip to content

Commit f03e359

Browse files
author
MPCoreDeveloper
committed
CI runner update voor OC
1 parent 5b435c6 commit f03e359

File tree

5 files changed

+81
-20
lines changed

5 files changed

+81
-20
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ jobs:
3131
dotnet-version: ${{ env.DOTNET_VERSION }}
3232

3333
- name: Restore dependencies
34-
run: dotnet restore SharpCoreDB.sln
34+
run: dotnet restore SharpCoreDB.CI.slnf
3535

3636
- name: Build
37-
run: dotnet build SharpCoreDB.sln --configuration Release --no-restore
37+
run: dotnet build SharpCoreDB.CI.slnf --configuration Release --no-restore
3838

3939
- name: Test
40-
run: dotnet test SharpCoreDB.sln --configuration Release --no-build --verbosity normal --logger trx --collect:"XPlat Code Coverage"
40+
run: dotnet test SharpCoreDB.CI.slnf --configuration Release --no-build --verbosity normal --logger trx --collect:"XPlat Code Coverage"
4141

4242
- name: Upload test results
4343
if: always()

Examples/Web/Orchardcore/README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# SharpCoreDB OrchardCore Example
2+
3+
This example demonstrates how to use SharpCoreDB with OrchardCore CMS.
4+
5+
## Important Note
6+
7+
**This project is excluded from the CI/CD builds** because it requires OrchardCore 3.0 preview packages that target .NET 10. These preview packages may not be available on the standard NuGet feed during CI builds.
8+
9+
## Requirements
10+
11+
- .NET 10.0 or later
12+
- OrchardCore 3.0.0-preview-18884 (targets .NET 10)
13+
- Access to OrchardCore preview NuGet feed (if needed)
14+
15+
## Building Locally
16+
17+
To build this project locally, you may need to add the OrchardCore preview feed:
18+
19+
```bash
20+
dotnet nuget add source https://nuget.cloudsmith.io/orchardcore/preview/v3/index.json --name "OrchardCore Preview"
21+
```
22+
23+
Then restore and build:
24+
25+
```bash
26+
dotnet restore Examples/Web/Orchardcore/SharpCoreDb.Orchardcore/SharpCoreDb.Orchardcore.csproj
27+
dotnet build Examples/Web/Orchardcore/SharpCoreDb.Orchardcore/SharpCoreDb.Orchardcore.csproj
28+
```
29+
30+
## CI/CD
31+
32+
The main SharpCoreDB solution uses a solution filter (`SharpCoreDB.CI.slnf`) for CI builds which excludes this example project to prevent build failures when preview packages are unavailable.
33+
34+
For local development, you can continue to use the full `SharpCoreDB.sln` solution.

Examples/Web/Orchardcore/SharpCoreDb.Orchardcore/SharpCoreDb.Orchardcore.csproj

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,20 @@
44
<TargetFramework>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
7+
<!-- Exclude from CI builds - requires OrchardCore 3.0 preview packages -->
8+
<IsPackable>false</IsPackable>
9+
<IsPublishable>false</IsPublishable>
10+
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
711
</PropertyGroup>
812

913
<ItemGroup>
1014
<PackageReference Include="OrchardCore.Application.Cms.Targets" Version="3.0.0-preview-18884" />
1115
</ItemGroup>
1216

1317
<ItemGroup>
14-
<ProjectReference Include="..\..\..\src\SharpCoreDB.Data.Provider\SharpCoreDB.Data.Provider.csproj" />
15-
<ProjectReference Include="..\..\..\src\SharpCoreDB.Provider.YesSql\SharpCoreDB.Provider.YesSql.csproj" />
16-
<ProjectReference Include="..\..\..\src\SharpCoreDB\SharpCoreDB.csproj" />
18+
<ProjectReference Include="..\..\..\..\src\SharpCoreDB.Data.Provider\SharpCoreDB.Data.Provider.csproj" />
19+
<ProjectReference Include="..\..\..\..\src\SharpCoreDB.Provider.YesSql\SharpCoreDB.Provider.YesSql.csproj" />
20+
<ProjectReference Include="..\..\..\..\src\SharpCoreDB\SharpCoreDB.csproj" />
1721
</ItemGroup>
1822

1923
<ItemGroup>

SharpCoreDB.CI.slnf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"solution": {
3+
"path": "SharpCoreDB.sln",
4+
"projects": [
5+
"src\\SharpCoreDB.Data.Provider\\SharpCoreDB.Data.Provider.csproj",
6+
"src\\SharpCoreDB.EntityFrameworkCore\\SharpCoreDB.EntityFrameworkCore.csproj",
7+
"src\\SharpCoreDB.Extensions\\SharpCoreDB.Extensions.csproj",
8+
"src\\SharpCoreDB.Provider.YesSql\\SharpCoreDB.Provider.YesSql.csproj",
9+
"src\\SharpCoreDB.Serilog.Sinks\\SharpCoreDB.Serilog.Sinks.csproj",
10+
"src\\SharpCoreDB\\SharpCoreDB.csproj",
11+
"tests\\SharpCoreDB.Benchmarks\\SharpCoreDB.Benchmarks.csproj",
12+
"tests\\SharpCoreDB.DemoJoinsSubQ\\SharpCoreDB.DemoJoinsSubQ.csproj",
13+
"tests\\SharpCoreDB.Profiling\\SharpCoreDB.Profiling.csproj",
14+
"tests\\SharpCoreDB.Tests\\SharpCoreDB.Tests.csproj",
15+
"tools\\SharpCoreDB.DebugBenchmark\\SharpCoreDB.DebugBenchmark.csproj",
16+
"tools\\SharpCoreDB.Demo\\SharpCoreDB.Demo.csproj",
17+
"tools\\SharpCoreDB.Viewer\\SharpCoreDB.Viewer.csproj"
18+
]
19+
}
20+
}

SharpCoreDB.sln

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpCoreDB.Provider.YesSql
5858
EndProject
5959
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "OrchardCore", "OrchardCore", "{A3546A87-CE5C-44A8-84EE-B5FA96737516}"
6060
EndProject
61-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpCoreDb.Orchardcore", "SharpCoreDb.Orchardcore\SharpCoreDb.Orchardcore.csproj", "{5F45DABB-D6A5-4421-BA2C-C313D88284CF}"
61+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SharpCoreDb.Orchardcore", "SharpCoreDb.Orchardcore", "{B8EFDB5D-C99E-47D5-91E7-251915885AF0}"
62+
EndProject
63+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpCoreDb.Orchardcore", "Examples\Web\Orchardcore\SharpCoreDb.Orchardcore\SharpCoreDb.Orchardcore.csproj", "{11359F89-59B7-E251-FC8F-D8A95313CA91}"
6264
EndProject
6365
Global
6466
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -226,18 +228,18 @@ Global
226228
{E033DAF5-4741-423A-B3CD-37D60FBD93ED}.Release|x64.Build.0 = Release|Any CPU
227229
{E033DAF5-4741-423A-B3CD-37D60FBD93ED}.Release|x86.ActiveCfg = Release|Any CPU
228230
{E033DAF5-4741-423A-B3CD-37D60FBD93ED}.Release|x86.Build.0 = Release|Any CPU
229-
{5F45DABB-D6A5-4421-BA2C-C313D88284CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
230-
{5F45DABB-D6A5-4421-BA2C-C313D88284CF}.Debug|Any CPU.Build.0 = Debug|Any CPU
231-
{5F45DABB-D6A5-4421-BA2C-C313D88284CF}.Debug|x64.ActiveCfg = Debug|Any CPU
232-
{5F45DABB-D6A5-4421-BA2C-C313D88284CF}.Debug|x64.Build.0 = Debug|Any CPU
233-
{5F45DABB-D6A5-4421-BA2C-C313D88284CF}.Debug|x86.ActiveCfg = Debug|Any CPU
234-
{5F45DABB-D6A5-4421-BA2C-C313D88284CF}.Debug|x86.Build.0 = Debug|Any CPU
235-
{5F45DABB-D6A5-4421-BA2C-C313D88284CF}.Release|Any CPU.ActiveCfg = Release|Any CPU
236-
{5F45DABB-D6A5-4421-BA2C-C313D88284CF}.Release|Any CPU.Build.0 = Release|Any CPU
237-
{5F45DABB-D6A5-4421-BA2C-C313D88284CF}.Release|x64.ActiveCfg = Release|Any CPU
238-
{5F45DABB-D6A5-4421-BA2C-C313D88284CF}.Release|x64.Build.0 = Release|Any CPU
239-
{5F45DABB-D6A5-4421-BA2C-C313D88284CF}.Release|x86.ActiveCfg = Release|Any CPU
240-
{5F45DABB-D6A5-4421-BA2C-C313D88284CF}.Release|x86.Build.0 = Release|Any CPU
231+
{11359F89-59B7-E251-FC8F-D8A95313CA91}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
232+
{11359F89-59B7-E251-FC8F-D8A95313CA91}.Debug|Any CPU.Build.0 = Debug|Any CPU
233+
{11359F89-59B7-E251-FC8F-D8A95313CA91}.Debug|x64.ActiveCfg = Debug|Any CPU
234+
{11359F89-59B7-E251-FC8F-D8A95313CA91}.Debug|x64.Build.0 = Debug|Any CPU
235+
{11359F89-59B7-E251-FC8F-D8A95313CA91}.Debug|x86.ActiveCfg = Debug|Any CPU
236+
{11359F89-59B7-E251-FC8F-D8A95313CA91}.Debug|x86.Build.0 = Debug|Any CPU
237+
{11359F89-59B7-E251-FC8F-D8A95313CA91}.Release|Any CPU.ActiveCfg = Release|Any CPU
238+
{11359F89-59B7-E251-FC8F-D8A95313CA91}.Release|Any CPU.Build.0 = Release|Any CPU
239+
{11359F89-59B7-E251-FC8F-D8A95313CA91}.Release|x64.ActiveCfg = Release|Any CPU
240+
{11359F89-59B7-E251-FC8F-D8A95313CA91}.Release|x64.Build.0 = Release|Any CPU
241+
{11359F89-59B7-E251-FC8F-D8A95313CA91}.Release|x86.ActiveCfg = Release|Any CPU
242+
{11359F89-59B7-E251-FC8F-D8A95313CA91}.Release|x86.Build.0 = Release|Any CPU
241243
EndGlobalSection
242244
GlobalSection(SolutionProperties) = preSolution
243245
HideSolutionNode = FALSE
@@ -260,7 +262,8 @@ Global
260262
{1988D03B-D0E7-48E6-B34E-DA0CC959D173} = {2F8A8533-DAA8-4CF9-A6C0-2F663AF7FD2E}
261263
{E033DAF5-4741-423A-B3CD-37D60FBD93ED} = {F8B5E3A4-1C2D-4E5F-8B9A-1D2E3F4A5B6C}
262264
{A3546A87-CE5C-44A8-84EE-B5FA96737516} = {50B921FA-F081-4B7B-A8E0-AF3DCC098CCC}
263-
{5F45DABB-D6A5-4421-BA2C-C313D88284CF} = {A3546A87-CE5C-44A8-84EE-B5FA96737516}
265+
{B8EFDB5D-C99E-47D5-91E7-251915885AF0} = {A3546A87-CE5C-44A8-84EE-B5FA96737516}
266+
{11359F89-59B7-E251-FC8F-D8A95313CA91} = {B8EFDB5D-C99E-47D5-91E7-251915885AF0}
264267
EndGlobalSection
265268
GlobalSection(ExtensibilityGlobals) = postSolution
266269
SolutionGuid = {F40825F5-26A1-4E85-9D0A-B0121A7ED5F8}

0 commit comments

Comments
 (0)