Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Prefix your items with `(Template)` if the change is about the template and not
- Updated Configuration documentation and uno workaround comment.
- Cleanup (fixes warnings on Windows, fixes vulnerabilities and renamed extensions) & Update packages.
- Updated the Segoe MDL2 Assets font to fix an issue with the Flip View icons on Windows.
- Optimized the .NET workloads install process.

## 3.8.X
- Updated from .NET 8 to .NET 9.
Expand Down
2 changes: 2 additions & 0 deletions build/steps-build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

steps:
- template: templates/dotnet-install.yml
parameters:
installAndroidWorkload: true

#-if false
- download: current
Expand Down
2 changes: 2 additions & 0 deletions build/steps-build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

steps:
- template: templates/dotnet-install.yml
parameters:
installAppleWorkload: true

#-if false
- download: current
Expand Down
2 changes: 0 additions & 2 deletions build/steps-build-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

steps:
- template: templates/dotnet-install.yml
parameters:
installMobileWorkload: false

#-if false
- download: current
Expand Down
35 changes: 30 additions & 5 deletions build/templates/dotnet-install.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
parameters:
UnoCheck_Version: '1.27.4'
UnoCheck_Manifest: 'https://raw.githubusercontent.com/unoplatform/uno.check/870b2615fc2783e9355374c12015597a92dd242a/manifests/uno.ui.manifest.json'
- name: UnoCheck_Version
type: string
default: '1.27.4'

- name: UnoCheck_Manifest
type: string
default: 'https://raw.githubusercontent.com/unoplatform/uno.check/870b2615fc2783e9355374c12015597a92dd242a/manifests/uno.ui.manifest.json'

# Whether the Android workload should be installed.
- name: installAndroidWorkload
type: boolean
default: false

# Whether the iOS workload should be installed.
- name: installAppleWorkload
type: boolean
default: false

steps:
- task: UseDotNet@2
Expand All @@ -11,8 +26,18 @@ steps:

- powershell: |
& dotnet tool update --global uno.check --version ${{ parameters.UnoCheck_Version }} --add-source https://api.nuget.org/v3/index.json
& uno-check -v --ci --non-interactive --fix --skip xcode --skip gtk3 --skip vswin --skip vsmac --skip androidsdk --skip androidemulator --manifest ${{ parameters.UnoCheck_Manifest }}
displayName: Install .NET Workloads | Uno Check
& uno-check -v --ci --non-interactive --fix --skip ios --skip xcode --skip gtk3 --skip vswin --skip vsmac --skip androidsdk --skip androidemulator --manifest ${{ parameters.UnoCheck_Manifest }}
displayName: Install Android .NET Workloads | Uno Check
errorActionPreference: continue
ignoreLASTEXITCODE: true
retryCountOnTaskFailure: 3
condition: and(succeeded(), eq('${{ parameters.installAndroidWorkload }}', true))

- powershell: |
& dotnet tool update --global uno.check --version ${{ parameters.UnoCheck_Version }} --add-source https://api.nuget.org/v3/index.json
& uno-check -v --ci --non-interactive --fix --skip android --skip xcode --skip gtk3 --skip vswin --skip vsmac --skip androidsdk --skip androidemulator --manifest ${{ parameters.UnoCheck_Manifest }}
displayName: Install iOS .NET Workloads | Uno Check
errorActionPreference: continue
ignoreLASTEXITCODE: true
retryCountOnTaskFailure: 3
retryCountOnTaskFailure: 3
condition: and(succeeded(), eq('${{ parameters.installAppleWorkload }}', true))