Skip to content

Commit

Permalink
Install workloads on Windows runner only
Browse files Browse the repository at this point in the history
  • Loading branch information
ektrah committed May 4, 2024
1 parent 66c0fcd commit 980a317
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand All @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion src/Cryptography/NSec.Cryptography.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;$(AdditionalTargetFrameworks)</TargetFrameworks>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks Condition="'$(RUNNER_OS)'=='Windows'">net8.0;net8.0-ios;net8.0-tvos;net8.0-maccatalyst</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
Expand Down
3 changes: 2 additions & 1 deletion src/Experimental/NSec.Experimental.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;$(AdditionalTargetFrameworks)</TargetFrameworks>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks Condition="'$(RUNNER_OS)'=='Windows'">net8.0;net8.0-ios;net8.0-tvos;net8.0-maccatalyst</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit 980a317

Please sign in to comment.