From 7a6ab46aed0cae7e72075833c692812c04566ebd Mon Sep 17 00:00:00 2001 From: Luca Domenichini Date: Wed, 13 Dec 2023 16:28:27 +0100 Subject: [PATCH] FIX github .net setup with multiple sdks --- .github/workflows/dotnet-develop.yml | 6 +++++- .github/workflows/dotnet-master.yml | 6 +++++- .github/workflows/dotnet-prerelease.yml | 6 +++++- .github/workflows/dotnet-release.yml | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet-develop.yml b/.github/workflows/dotnet-develop.yml index f9f3497..639bc81 100644 --- a/.github/workflows/dotnet-develop.yml +++ b/.github/workflows/dotnet-develop.yml @@ -11,7 +11,11 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup .NET + - name: Setup .NET6 + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 6.0.x + - name: Setup .NET8 uses: actions/setup-dotnet@v2 with: dotnet-version: 8.0.x diff --git a/.github/workflows/dotnet-master.yml b/.github/workflows/dotnet-master.yml index b363c3b..33f1588 100644 --- a/.github/workflows/dotnet-master.yml +++ b/.github/workflows/dotnet-master.yml @@ -11,7 +11,11 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup .NET + - name: Setup .NET6 + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 6.0.x + - name: Setup .NET8 uses: actions/setup-dotnet@v2 with: dotnet-version: 8.0.x diff --git a/.github/workflows/dotnet-prerelease.yml b/.github/workflows/dotnet-prerelease.yml index 600f4cc..7c45ec7 100644 --- a/.github/workflows/dotnet-prerelease.yml +++ b/.github/workflows/dotnet-prerelease.yml @@ -22,7 +22,11 @@ jobs: id: version run: echo "::set-output name=PRODUCT_VERSION::${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }}.${{ steps.date.outputs.date }}.${{ github.run_attempt }}${{ env.VERSION_SUFFIX }}" - uses: actions/checkout@v3 - - name: Setup .NET + - name: Setup .NET6 + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 6.0.x + - name: Setup .NET8 uses: actions/setup-dotnet@v2 with: dotnet-version: 8.0.x diff --git a/.github/workflows/dotnet-release.yml b/.github/workflows/dotnet-release.yml index 96c5006..6a03cc2 100644 --- a/.github/workflows/dotnet-release.yml +++ b/.github/workflows/dotnet-release.yml @@ -22,7 +22,11 @@ jobs: id: version run: echo "::set-output name=PRODUCT_VERSION::${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }}.${{ steps.date.outputs.date }}.${{ github.run_attempt }}${{ env.VERSION_SUFFIX }}" - uses: actions/checkout@v3 - - name: Setup .NET + - name: Setup .NET6 + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 6.0.x + - name: Setup .NET8 uses: actions/setup-dotnet@v2 with: dotnet-version: 8.0.x