From e7741cf09fbc1893a7a755a0e0dffaba9bb6262d Mon Sep 17 00:00:00 2001 From: chynesNR Date: Mon, 16 Sep 2024 14:09:03 -0700 Subject: [PATCH] Setup .NET 9 in GHA --- .github/workflows/all_solutions.yml | 15 +++++++++++++++ .github/workflows/run_unit_tests.yml | 5 +++++ 2 files changed, 20 insertions(+) diff --git a/.github/workflows/all_solutions.yml b/.github/workflows/all_solutions.yml index 91b5ffcc09..7eba009ee6 100644 --- a/.github/workflows/all_solutions.yml +++ b/.github/workflows/all_solutions.yml @@ -57,6 +57,11 @@ jobs: with: fetch-depth: 0 + - name: Setup .NET 9 Preview + uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1 + with: + dotnet-version: '9.0.0-rc.1' + - name: Build FullAgent.sln run: | Write-Host "dotnet build --force --configuration Release -p:AllowUnsafeBlocks=true ${{ env.fullagent_solution_path }}" @@ -147,6 +152,11 @@ jobs: with: vs-prerelease: true + - name: Setup .NET 9 Preview + uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1 + with: + dotnet-version: '9.0.0-rc.1' + - name: List SDKS run: dotnet --list-sdks shell: powershell @@ -189,6 +199,11 @@ jobs: with: vs-prerelease: true + - name: Setup .NET 9 Preview + uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1 + with: + dotnet-version: '9.0.0-rc.1' + - name: Build UnboundedIntegrationTests.sln run: | Write-Host "List NuGet Sources" diff --git a/.github/workflows/run_unit_tests.yml b/.github/workflows/run_unit_tests.yml index 48633b694f..fc36b0d0ff 100644 --- a/.github/workflows/run_unit_tests.yml +++ b/.github/workflows/run_unit_tests.yml @@ -47,6 +47,11 @@ jobs: with: fetch-depth: 0 + - name: Setup .NET 9 Preview + uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1 + with: + dotnet-version: '9.0.0-rc.1' + - name: Restore NuGet Packages run: dotnet restore