Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Use uno-check to compile with .net sdk 7.0.102 #65

Merged
merged 1 commit into from
Dec 7, 2023
Merged
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
29 changes: 20 additions & 9 deletions build/stage-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
steps:
parameters:
DotNetVersion: '7.0.102'
UnoCheck_Version: '1.11.0'
UnoCheck_Manifest: 'https://raw.githubusercontent.com/unoplatform/uno.check/146b0b4b23d866bef455494a12ad7ffd2f6f2d20/manifests/uno.ui.manifest.json'

steps:
- task: gitversion/setup@0
inputs:
versionSpec: '5.10.1'
Expand All @@ -16,15 +21,21 @@
versionSpec: $(NUGET_VERSION)
checkLatest: false

- 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: Uno-check
errorActionPreference: continue
ignoreLASTEXITCODE: true
retryCountOnTaskFailure: 3

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