From aa90bf5bdd92a18857eae5eebfd3110e879e121a Mon Sep 17 00:00:00 2001 From: Mikhail Gorobets Date: Mon, 20 Nov 2023 15:42:25 +0600 Subject: [PATCH] GitHub Actions: Added the installation of .NET 6.0 for building the NuGet package --- .github/workflows/build-nuget-package.yml | 9 +++++++-- .github/workflows/publish-nuget-package.yml | 7 ++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-nuget-package.yml b/.github/workflows/build-nuget-package.yml index 037bee09d4..b32252db3f 100644 --- a/.github/workflows/build-nuget-package.yml +++ b/.github/workflows/build-nuget-package.yml @@ -12,7 +12,7 @@ jobs: toolset: [x64] config: [Debug, Release] - runs-on: windows-latest + runs-on: windows-2022 name: Windows 10, ${{ matrix.config }} ${{ matrix.toolset }} steps: @@ -20,7 +20,12 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 - submodules: recursive + submodules: recursive + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0.x - name: Install python packages working-directory: ${{github.workspace}} diff --git a/.github/workflows/publish-nuget-package.yml b/.github/workflows/publish-nuget-package.yml index d954dfe522..5ca8c97188 100644 --- a/.github/workflows/publish-nuget-package.yml +++ b/.github/workflows/publish-nuget-package.yml @@ -13,7 +13,7 @@ env: jobs: deploy: - runs-on: windows-latest + runs-on: windows-2022 name: Deploying NuGet package steps: @@ -23,6 +23,11 @@ jobs: fetch-depth: 0 submodules: recursive + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0.x + - name: Install python packages working-directory: ${{github.workspace}} run: python -m pip install -r ./BuildTools/.NET/requirements.txt