Skip to content

Commit c6a0a97

Browse files
Restore workloads
1 parent becaa00 commit c6a0a97

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,10 @@ jobs:
5555
# We don't use a lockfile, so hash all files where we might be keeping <PackageReference> tags
5656
# Workloads also get installed in the nuget packages cache, so if you modify workloads below, increment the number in the cache keys
5757
key: ${{ runner.os }}-nuget+workloads2-${{ hashFiles('**/*.*proj', '**/*.props') }}
58-
restore-keys: ${{ runner.os }}-nuget+workloads2
58+
restore-keys: ${{ runner.os }}-nuget+workloads3
5959

60-
- name: Install .NET Workloads (Ubuntu)
61-
if: startsWith(matrix.os, 'ubuntu')
62-
run: dotnet workload install maui-android
63-
- name: Install .NET Workloads (Windows)
64-
if: startsWith(matrix.os, 'windows')
65-
run: dotnet workload install maui-android maui-windows
66-
- name: Install .NET Workloads (macOS)
67-
if: startsWith(matrix.os, 'macos')
68-
run: dotnet workload install maui-android maui-ios maui-maccatalyst
60+
- name: Restore .NET Workloads
61+
run: dotnet workload restore
6962

7063
- name: Build
7164
run: dotnet build -c Release /p:CopyLocalLockFileAssemblies=true

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.*proj', '**/*.props') }}
3636
restore-keys: ${{ runner.os }}-nuget
3737

38+
- name: Restore .NET Workloads
39+
run: dotnet workload restore
40+
3841
# Initializes the CodeQL tools for scanning.
3942
- name: Initialize CodeQL
4043
uses: github/codeql-action/init@v2

0 commit comments

Comments
 (0)