Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -523,3 +523,5 @@ dotnet_naming_rule.parameters_rule.severity = warning
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
##########################################

dotnet_style_require_accessibility_modifiers = for_non_interface_members
14 changes: 11 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ jobs:
with:
lfs: true
fetch-depth: 0
- name: "Install .NET 8.0 SDK"
- name: "Setup dotnet"
uses: actions/setup-dotnet@v5.0.0
with:
dotnet-version: 8.0.x
dotnet-version: |
8.0.x
10.0.x
- name: "Dotnet Tool Restore"
run: dotnet tool restore
shell: pwsh
Expand Down Expand Up @@ -84,6 +86,7 @@ jobs:
url: https://github.com/TimmyMC/Schema.NET/packages
permissions:
packages: write
id-token: write
runs-on: windows-latest
steps:
- name: "Download Artefact"
Expand All @@ -110,9 +113,14 @@ jobs:
uses: actions/download-artifact@v6.0.0
with:
name: "windows-latest"
- name: NuGet login (OIDC → temp API key)
uses: NuGet/login@v1
id: login
with:
user: "TimmyMC"
- name: "Dotnet NuGet Push"
run: |
Get-ChildItem .\ -Filter *.nupkg |
Where-Object { !$_.Name.Contains('preview') } |
ForEach-Object { dotnet nuget push $_ --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} }
ForEach-Object { dotnet nuget push $_ --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{ steps.login.outputs.NUGET_API_KEY }} }
shell: pwsh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

<PropertyGroup Label="Build">
<OutputType>Exe</OutputType>
<TargetFrameworks>net8.0;net48</TargetFrameworks>
<TargetFrameworks>net10.0;net8.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>

<ItemGroup Label="Project References">
Expand Down
2 changes: 1 addition & 1 deletion Benchmarks/Schema.NET.Benchmarks/SchemaBenchmarkBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Schema.NET.Benchmarks;
[CsvMeasurementsExporter]
[RPlotExporter]
[SimpleJob(RuntimeMoniker.Net80)]
[SimpleJob(RuntimeMoniker.Net48)]
[SimpleJob(RuntimeMoniker.Net10_0)]
public abstract class SchemaBenchmarkBase
{
public Thing Thing { get; set; } = default!;
Expand Down
Loading
Loading