From b792f7f14742ab607b41d56305d9c87f7ed002e7 Mon Sep 17 00:00:00 2001 From: Havret Date: Sat, 23 May 2026 09:33:15 +0200 Subject: [PATCH] Update build configuration to support .NET 10.0 --- .github/workflows/build.yml | 15 +++++++++------ Directory.Build.props | 2 +- src/NMS.AMQP/Apache-NMS-AMQP.csproj | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3f8402f0..c4c7bfbe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,8 +7,11 @@ on: branches: [ main ] jobs: - build: + test: runs-on: ubuntu-latest + strategy: + matrix: + framework: ['net8.0', 'net10.0'] env: NMS_AMQP_TEST_CU: "artemis" NMS_AMQP_TEST_CPWD: "artemis" @@ -19,15 +22,15 @@ jobs: - name: Run ActiveMQ Artemis run: docker compose up -V -d working-directory: ./test - - name: Setup .NET 8 + - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.x' + dotnet-version: | + 8.0.x + 10.0.x - name: Restore dependencies run: dotnet restore apache-nms-amqp.sln - - name: Build run: dotnet build apache-nms-amqp.sln --configuration Release --no-restore - - name: Test - run: dotnet test apache-nms-amqp.sln --configuration Release --no-build --verbosity normal \ No newline at end of file + run: dotnet test apache-nms-amqp.sln --configuration Release --no-build --framework ${{ matrix.framework }} --verbosity normal \ No newline at end of file diff --git a/Directory.Build.props b/Directory.Build.props index 3add44fc..e97eb4ae 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ 12 - net8.0 + net8.0;net10.0 \ No newline at end of file diff --git a/src/NMS.AMQP/Apache-NMS-AMQP.csproj b/src/NMS.AMQP/Apache-NMS-AMQP.csproj index 2e9da743..cdddae83 100644 --- a/src/NMS.AMQP/Apache-NMS-AMQP.csproj +++ b/src/NMS.AMQP/Apache-NMS-AMQP.csproj @@ -18,7 +18,7 @@ with the License. You may obtain a copy of the License at Library - netstandard2.0 + netstandard2.0 Apache.NMS.AMQP Apache.NMS.AMQP