Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
96 changes: 46 additions & 50 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,12 @@ jobs:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: "Checkout"
uses: actions/checkout@v4.2.2
uses: actions/checkout@v5.0.1
with:
lfs: true
fetch-depth: 0
- name: "Install .NET 6.0 SDK"
uses: actions/setup-dotnet@v4.2.0
with:
dotnet-version: 6.0.x
- name: "Install .NET 8.0 SDK"
uses: actions/setup-dotnet@v4.2.0
uses: actions/setup-dotnet@v5.0.0
with:
dotnet-version: 8.0.x
- name: "Dotnet Tool Restore"
Expand All @@ -54,7 +50,7 @@ jobs:
run: dotnet cake --target=Pack
shell: pwsh
- name: "Publish Artefacts"
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v5.0.0
if: always()
with:
name: ${{matrix.os}}
Expand All @@ -70,53 +66,53 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Download Artefact"
uses: actions/download-artifact@v3.0.2
uses: actions/download-artifact@v6.0.0
with:
path: "./Artefacts"
- name: "Publish Test Summary"
uses: test-summary/action@v2
if: always()
with:
paths: "./Artefacts/*/*.xml"

push-github-packages:
name: "Push GitHub Packages"
needs: build
if: github.ref == 'refs/heads/main' || github.event_name == 'release'
environment:
name: "GitHub Packages"
url: https://github.com/RehanSaeed/Schema.NET/packages
permissions:
packages: write
runs-on: windows-latest
steps:
- name: "Download Artefact"
uses: actions/download-artifact@v3.0.2
with:
name: "windows-latest"
- name: "Dotnet NuGet Add Source"
run: dotnet nuget add source https://nuget.pkg.github.com/RehanSaeed/index.json --name GitHub --username RehanSaeed --password ${{secrets.GITHUB_TOKEN}}
shell: pwsh
- name: "Dotnet NuGet Push"
run: dotnet nuget push .\*.nupkg --api-key ${{ github.token }} --source GitHub --skip-duplicate
shell: pwsh

push-nuget:
name: "Push NuGet Packages"
needs: build
if: github.event_name == 'release'
environment:
name: "NuGet"
url: https://www.nuget.org/packages/Schema.NET
runs-on: windows-latest
steps:
- name: "Download Artefact"
uses: actions/download-artifact@v3.0.2
with:
name: "windows-latest"
- 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}} }
shell: pwsh
#
# push-github-packages:
# name: "Push GitHub Packages"
# needs: build
# if: github.ref == 'refs/heads/main' || github.event_name == 'release'
# environment:
# name: "GitHub Packages"
# url: https://github.com/RehanSaeed/Schema.NET/packages
# permissions:
# packages: write
# runs-on: windows-latest
# steps:
# - name: "Download Artefact"
# uses: actions/download-artifact@v6.0.0
# with:
# name: "windows-latest"
# - name: "Dotnet NuGet Add Source"
# run: dotnet nuget add source https://nuget.pkg.github.com/RehanSaeed/index.json --name GitHub --username RehanSaeed --password ${{secrets.GITHUB_TOKEN}}
# shell: pwsh
# - name: "Dotnet NuGet Push"
# run: dotnet nuget push .\*.nupkg --api-key ${{ github.token }} --source GitHub --skip-duplicate
# shell: pwsh
#
# push-nuget:
# name: "Push NuGet Packages"
# needs: build
# if: github.event_name == 'release'
# environment:
# name: "NuGet"
# url: https://www.nuget.org/packages/Schema.NET
# runs-on: windows-latest
# steps:
# - name: "Download Artefact"
# uses: actions/download-artifact@v6.0.0
# with:
# name: "windows-latest"
# - 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}} }
# shell: pwsh
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4.2.2
uses: actions/checkout@v5.0.1

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -49,7 +49,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v4

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -63,4 +63,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v4
50 changes: 25 additions & 25 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: Release Drafter

on:
push:
branches:
- main
pull_request_target:
types:
- edited
- opened
- reopened
- synchronize
workflow_dispatch:

jobs:
update_release_draft:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: "Draft Release"
uses: release-drafter/release-drafter@v5.24.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#name: Release Drafter
#
#on:
# push:
# branches:
# - main
# pull_request_target:
# types:
# - edited
# - opened
# - reopened
# - synchronize
# workflow_dispatch:
#
#jobs:
# update_release_draft:
# permissions:
# contents: write
# pull-requests: write
# runs-on: ubuntu-latest
# steps:
# - name: "Draft Release"
# uses: release-drafter/release-drafter@v6.1.0
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions Benchmarks/Schema.NET.Benchmarks/Schema.NET.Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup Label="Build">
<OutputType>Exe</OutputType>
<TargetFrameworks>net8.0;net6.0;net462;net472;net48</TargetFrameworks>
<TargetFrameworks>net8.0;net48</TargetFrameworks>
<IsPackable>false</IsPackable>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
Expand All @@ -12,7 +12,7 @@
</ItemGroup>

<ItemGroup Label="Package References">
<PackageReference Include="BenchmarkDotNet" Version="0.13.12" />
<PackageReference Include="BenchmarkDotNet" Version="0.15.6" />
</ItemGroup>

</Project>
3 changes: 0 additions & 3 deletions Benchmarks/Schema.NET.Benchmarks/SchemaBenchmarkBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ namespace Schema.NET.Benchmarks;
[CsvMeasurementsExporter]
[RPlotExporter]
[SimpleJob(RuntimeMoniker.Net80)]
[SimpleJob(RuntimeMoniker.Net60)]
[SimpleJob(RuntimeMoniker.Net462)]
[SimpleJob(RuntimeMoniker.Net472)]
[SimpleJob(RuntimeMoniker.Net48)]
public abstract class SchemaBenchmarkBase
{
Expand Down
Loading
Loading