Skip to content

Commit

Permalink
fix: Use uno-check to compile with .net sdk 7.0.101
Browse files Browse the repository at this point in the history
  • Loading branch information
NVENTIVE\felix.brault committed Dec 6, 2023
1 parent bf56504 commit 776f44a
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions build/stage-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
steps:
parameters:
DotNetVersion: '7.0.101'
UnoCheck_Version: '1.10.0'
UnoCheck_Manifest: 'https://raw.githubusercontent.com/unoplatform/uno.check/a677137a2afd4ee25ba4b4df4bf857671ba192c3/manifests/uno.ui.manifest.json'

steps:
- task: gitversion/setup@0
inputs:
versionSpec: '5.10.1'
Expand All @@ -9,16 +14,22 @@
useConfigFile: true
configFilePath: $(Build.SourcesDirectory)/build/gitversion.yml
displayName: 'Calculate version'

- script: dotnet workload install android ios macos maccatalyst"
displayName: 'Install .NET workloads'

- task: JavaToolInstaller@0
displayName: "Install Java SDK 11"

- task: UseDotNet@2
displayName: 'Use .NET SDK ${{ parameters.DotNetVersion }}'
retryCountOnTaskFailure: 3
inputs:
versionSpec: '11'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
packageType: sdk
version: ${{ parameters.DotNetVersion }}
includePreviewVersions: 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 xcode --skip gtk3 --skip vswin --skip vsmac --skip androidsdk --skip androidemulator --manifest ${{ parameters.UnoCheck_Manifest }}
displayName: Install .NET Workloads | Uno-check
errorActionPreference: continue
ignoreLASTEXITCODE: true
retryCountOnTaskFailure: 3

- task: MSBuild@1
displayName: 'Restore solution packages'
Expand Down

0 comments on commit 776f44a

Please sign in to comment.