/
dotnet-install-macos.yml
37 lines (32 loc) · 1.28 KB
/
dotnet-install-macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
parameters:
DotNetVersion: '6.0.401'
UnoCheck_Version: '1.5.4'
UnoCheck_Manifest: 'https://raw.githubusercontent.com/unoplatform/uno.check/34b1a60f5c1c51604b47362781969dde46979fd5/manifests/uno.ui.manifest.json'
Dotnet_Root: '/usr/local/share/dotnet/'
Dotnet_Tools: '~/.dotnet/tools'
steps:
- task: UseDotNet@2
displayName: install .NET 5
retryCountOnTaskFailure: 3
inputs:
version: 5.x
installationPath: ${{ parameters.Dotnet_Root }}
- task: UseDotNet@2
displayName: install .NET 3.1
retryCountOnTaskFailure: 3
inputs:
version: 3.1.x
installationPath: ${{ parameters.Dotnet_Root }}
- task: UseDotNet@2
displayName: 'Use .NET Core SDK ${{ parameters.DotNetVersion }}'
retryCountOnTaskFailure: 3
inputs:
packageType: sdk
version: ${{ parameters.DotNetVersion }}
includePreviewVersions: true
- template: jdk-setup.yml
- bash: |
dotnet tool update --global uno.check --version ${{ parameters.UnoCheck_Version }} --add-source https://api.nuget.org/v3/index.json
uno-check --ci --non-interactive --fix --skip androidsdk --skip gtk3 --skip xcode --skip vswin --skip vsmac --manifest ${{ parameters.UnoCheck_Manifest }}
displayName: Install .NET Workloads
retryCountOnTaskFailure: 3