From 8722461fd41e9a31da0c515b25104eb00f656832 Mon Sep 17 00:00:00 2001 From: Alex Wichmann Date: Mon, 8 Jun 2026 09:35:54 +0200 Subject: [PATCH 1/2] build: update build .net build targets --- .github/workflows/ci.yml | 13 ++++++++----- .github/workflows/release-beta.yml | 9 +++++++-- .github/workflows/release-package.yml | 9 +++++++-- Common.Build.props | 4 ++-- .../ByteBard.AsyncAPI.Readers.JsonExample.csproj | 2 +- .../ByteBard.AsyncAPI.Readers.YamlExample.csproj | 2 +- .../ByteBard.AsyncAPI.Writers.Example.csproj | 2 +- .../ByteBard.AsyncAPI.Tests.csproj | 2 +- 8 files changed, 28 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a57eb67..18aae73 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,8 +28,9 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - name: Scan PR diff uses: ByteBardOrg/obfuscan-action@v1 + env: + INPUT_GITHUB_TOKEN: ${{ github.token }} with: - github-token: ${{ secrets.GITHUB_TOKEN }} fail-on: block build: @@ -41,12 +42,14 @@ jobs: steps: - uses: actions/checkout@v2 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.x' - include-prerelease: true + dotnet-version: | + 8.0.x + 9.0.x + 10.0.x - name: Restore dependencies - run: dotnet restore + run: dotnet restore - name: Build run: dotnet build --no-restore - name: Test diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index aed2754..ae2b2cc 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -38,8 +38,13 @@ jobs: - name: Checkout repository uses: actions/checkout@v1 - - name: Setup .NET Core @ Latest - uses: actions/setup-dotnet@v1 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 8.0.x + 9.0.x + 10.0.x - run: echo ${{env.GITHUB_RUN_NUMBER_WITH_OFFSET}} - name: Build ${{ matrix.package-name }} project and pack NuGet package diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index 48484f3..98e8b99 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -66,9 +66,14 @@ jobs: - name: Checkout repository uses: actions/checkout@v1 - - name: Setup .NET Core @ Latest + - name: Setup .NET if: needs.prereleaseCheck.outputs.trigger_release == 'true' - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 8.0.x + 9.0.x + 10.0.x - name: Build ${{ matrix.package-name }} project and pack NuGet package if: needs.prereleaseCheck.outputs.trigger_release == 'true' diff --git a/Common.Build.props b/Common.Build.props index 7f7d0ea..69bcd2c 100644 --- a/Common.Build.props +++ b/Common.Build.props @@ -2,7 +2,7 @@ 10 - netstandard2.0;netstandard2.1;net8 + netstandard2.0;netstandard2.1;net8.0;net9.0;net10.0 disable ByteBard https://github.com/ByteBardOrg/AsyncAPI.NET @@ -21,4 +21,4 @@ - \ No newline at end of file + diff --git a/examples/ByteBard.AsyncAPI.Readers.JsonExample/ByteBard.AsyncAPI.Readers.JsonExample.csproj b/examples/ByteBard.AsyncAPI.Readers.JsonExample/ByteBard.AsyncAPI.Readers.JsonExample.csproj index e47ee8b..871197d 100644 --- a/examples/ByteBard.AsyncAPI.Readers.JsonExample/ByteBard.AsyncAPI.Readers.JsonExample.csproj +++ b/examples/ByteBard.AsyncAPI.Readers.JsonExample/ByteBard.AsyncAPI.Readers.JsonExample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net10.0 disable enable diff --git a/examples/ByteBard.AsyncAPI.Readers.YamlExample/ByteBard.AsyncAPI.Readers.YamlExample.csproj b/examples/ByteBard.AsyncAPI.Readers.YamlExample/ByteBard.AsyncAPI.Readers.YamlExample.csproj index 2ebfbf6..8e87447 100644 --- a/examples/ByteBard.AsyncAPI.Readers.YamlExample/ByteBard.AsyncAPI.Readers.YamlExample.csproj +++ b/examples/ByteBard.AsyncAPI.Readers.YamlExample/ByteBard.AsyncAPI.Readers.YamlExample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net10.0 disable enable diff --git a/examples/ByteBard.AsyncAPI.Writers.Example/ByteBard.AsyncAPI.Writers.Example.csproj b/examples/ByteBard.AsyncAPI.Writers.Example/ByteBard.AsyncAPI.Writers.Example.csproj index 4e9e52b..c76ec4c 100644 --- a/examples/ByteBard.AsyncAPI.Writers.Example/ByteBard.AsyncAPI.Writers.Example.csproj +++ b/examples/ByteBard.AsyncAPI.Writers.Example/ByteBard.AsyncAPI.Writers.Example.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net10.0 enable enable diff --git a/test/ByteBard.AsyncAPI.Tests/ByteBard.AsyncAPI.Tests.csproj b/test/ByteBard.AsyncAPI.Tests/ByteBard.AsyncAPI.Tests.csproj index 36f6007..27f4ba1 100644 --- a/test/ByteBard.AsyncAPI.Tests/ByteBard.AsyncAPI.Tests.csproj +++ b/test/ByteBard.AsyncAPI.Tests/ByteBard.AsyncAPI.Tests.csproj @@ -2,7 +2,7 @@ 11 - net8.0 + net8.0;net9.0;net10.0 disable enable false From 6e56a962c72142084184bf9c0ee9f1871ebb14f4 Mon Sep 17 00:00:00 2001 From: Alex Wichmann Date: Mon, 8 Jun 2026 09:37:18 +0200 Subject: [PATCH 2/2] reset ci.yml --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18aae73..0b106a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,9 +28,8 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - name: Scan PR diff uses: ByteBardOrg/obfuscan-action@v1 - env: - INPUT_GITHUB_TOKEN: ${{ github.token }} with: + github-token: ${{ secrets.GITHUB_TOKEN }} fail-on: block build: