From 980a317e7b8a3a3763200d29411f6183f985cefb Mon Sep 17 00:00:00 2001 From: ektrah Date: Sat, 4 May 2024 16:09:35 +0200 Subject: [PATCH] Install workloads on Windows runner only --- .github/workflows/test.yml | 8 ++------ src/Cryptography/NSec.Cryptography.csproj | 3 ++- src/Experimental/NSec.Experimental.csproj | 3 ++- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3b6267b4..cc5f83d2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,17 +9,16 @@ jobs: env: DOTNET_CLI_TELEMETRY_OPTOUT: 1 DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 - AdditionalTargetFrameworks: net8.0-ios;net8.0-tvos;net8.0-maccatalyst steps: - name: Set up .NET uses: actions/setup-dotnet@v4 with: dotnet-version: | 8.0.x + - name: Install workloads + run: dotnet workload install ios tvos maccatalyst - run: dotnet --info - uses: actions/checkout@v4 - - name: Restore workloads - run: dotnet workload install ios tvos maccatalyst - name: Test (.NET 8.0/Debug) run: dotnet test tests -f net8.0 -c Debug - name: Test (.NET 8.0/Release) @@ -44,7 +43,6 @@ jobs: env: DOTNET_CLI_TELEMETRY_OPTOUT: 1 DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 - AdditionalTargetFrameworks: net8.0-ios;net8.0-tvos;net8.0-maccatalyst steps: - name: Set up .NET uses: actions/setup-dotnet@v4 @@ -53,8 +51,6 @@ jobs: 8.0.x - run: dotnet --info - uses: actions/checkout@v4 - - name: Restore workloads - run: dotnet workload install ios tvos maccatalyst - name: Test (.NET 8.0/Debug) run: dotnet test tests -f net8.0 -c Debug - name: Test (.NET 8.0/Release) diff --git a/src/Cryptography/NSec.Cryptography.csproj b/src/Cryptography/NSec.Cryptography.csproj index 0408b7c2..f0e2bc0a 100644 --- a/src/Cryptography/NSec.Cryptography.csproj +++ b/src/Cryptography/NSec.Cryptography.csproj @@ -1,7 +1,8 @@  - net8.0;$(AdditionalTargetFrameworks) + net8.0 + net8.0;net8.0-ios;net8.0-tvos;net8.0-maccatalyst diff --git a/src/Experimental/NSec.Experimental.csproj b/src/Experimental/NSec.Experimental.csproj index 1f3c9fe1..1fdda806 100644 --- a/src/Experimental/NSec.Experimental.csproj +++ b/src/Experimental/NSec.Experimental.csproj @@ -1,7 +1,8 @@  - net8.0;$(AdditionalTargetFrameworks) + net8.0 + net8.0;net8.0-ios;net8.0-tvos;net8.0-maccatalyst