ci: Adjust for removed xamarin targets

This commit is contained in:
Jérôme Laban 2023-06-18 17:59:20 -04:00 коммит произвёл GitHub
Родитель c3ed3ac50f
Коммит 4fb22a9ba1
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 0 добавлений и 230 удалений

Просмотреть файл

@ -85,29 +85,6 @@ jobs:
OverWrite: false
flattenFolders: false
- task: MSBuild@1
inputs:
solution: '$(build.sourcesdirectory)/src/Calculator.iOS/Calculator.iOS.csproj'
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: /r /p:Configuration=Release /p:Platform=iPhone /bl:$(build.artifactstagingdirectory)/build-xamarin.binlog "/p:InformationalVersion=$GITVERSION_INFORMATIONALVERSION"
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: true
createLogFile: true
- task: CopyFiles@2
displayName: 'Publish iOS Binaries'
inputs:
SourceFolder: $(build.sourcesdirectory)/src/Calculator.iOS/bin/iPhone/Release
Contents: '*.ipa'
TargetFolder: $(build.artifactstagingdirectory)
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
- task: PublishBuildArtifacts@1
condition: always()
retryCountOnTaskFailure: 3

Просмотреть файл

@ -1,111 +0,0 @@
jobs:
- job: macOS
pool:
vmImage: 'macOS-12'
variables:
- name: NUGET_PACKAGES
value: $(build.sourcesdirectory)/.nuget
- name: VersionCodeOffset
value: 400559 # last value for the APK release
- group: unoplatform.apple.ios.appstore.distribution
workspace:
clean: all
steps:
- template: build/uno-ci/canary-updater.yml
- template: build/uno-ci/gitversion.yml
# Apply workaround for https://github.com/xamarin/xamarin-macios/issues/10652
# - bash: |
# curl -o xamarinmac.pkg 'https://bosstoragemirror.blob.core.windows.net/wrench/xcode12.4/a4c70e7d04e3904d17aa60f6d640eb048081c757/4477741/package/notarized/xamarin.mac-7.4.0.10.pkg'
# sudo installer -pkg xamarinmac.pkg -target /
#
# displayName: Apply Xamarin.mac workaround
- task: UseDotNet@2
displayName: 'Use .Net Core runtime 3.1.6'
retryCountOnTaskFailure: 3
inputs:
packageType: runtime
version: 3.1.6
- task: InstallAppleCertificate@2
displayName: Install Certificate
inputs:
certSecureFile: UnoPlatform-Apple-Distribution.p12
certPwd: $(appleappstorecertificatepassword)
keychain: temp
- task: InstallAppleCertificate@2
displayName: Install Certificate
inputs:
certSecureFile: UnoPlatform-MacInstaller.p12
certPwd: $(appleappstorecertificatepassword)
keychain: temp
- task: InstallAppleProvisioningProfile@1
displayName: 'Install Apple Provisioning Profile'
inputs:
provisioningProfileLocation: 'secureFiles'
provProfileSecureFile: Uno_Calculator_Canary_Catalyst.provisionprofile # Located in the Library's secure files
- task: InstallAppleProvisioningProfile@1
displayName: 'Install Apple Provisioning Profile'
inputs:
provisioningProfileLocation: 'secureFiles'
provProfileSecureFile: Uno_Calculator_macOS.mobileprovision # Located in the Library's secure files
- bash: |
cd $(build.sourcesdirectory)/src/CalcManager
chmod +x build_macos.sh
./build_macos.sh
displayName: Build native CalcManager
- task: MSBuild@1
inputs:
solution: '$(build.sourcesdirectory)/src/build/build.csproj'
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: /r /p:BuildPlatformTarget=iPhoneSimulator /bl:$(build.artifactstagingdirectory)/build.binlog
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: true
createLogFile: true
- task: MSBuild@1
inputs:
solution: '$(build.sourcesdirectory)/src/Calculator.macOS/Calculator.macOS.csproj'
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: /r /p:Configuration=Release /p:Platform=iPhoneSimulator /bl:$(build.artifactstagingdirectory)/build.binlog "/p:InformationalVersion=$GITVERSION_INFORMATIONALVERSION"
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: true
createLogFile: true
- task: CopyFiles@2
displayName: 'Publish macOS Binaries'
inputs:
SourceFolder: $(build.sourcesdirectory)/src/Calculator.macOS/bin/Release
Contents: '*.pkg'
TargetFolder: $(build.artifactstagingdirectory)
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
- task: PublishBuildArtifacts@1
condition: always()
retryCountOnTaskFailure: 3
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: Uno-Calculator-macOS
ArtifactType: Container

Просмотреть файл

@ -1,10 +1,7 @@
jobs:
- template: build/uno-ci/build-android-xamarin-windows.yml
- template: build/uno-ci/build-skia-windows.yml
- template: build/uno-ci/build-android-netcore-windows.yml
# - template: build/uno-ci/build-uwp-windows.yml # disabled for invalid native dependencies
- template: .vsts-ci.Linux.yml
- template: .vsts-ci.macOS.yml
- template: .vsts-ci.catalyst.yml
- template: .vsts-ci.iOS.yml
- template: .vsts-ci.Skia.yml

Просмотреть файл

@ -1,93 +0,0 @@
jobs:
- job: Windows_Android_Xamarin
timeoutInMinutes: 90
pool:
vmImage: 'windows-2022'
variables:
VersionCodeOffset: 400559 # last value for the APK release
workspace:
clean: all
steps:
- template: canary-updater.yml
- template: gitversion.yml
- task: UseDotNet@2
displayName: 'Use .NET SDK'
retryCountOnTaskFailure: 3
inputs:
packageType: sdk
version: 7.0.102
- template: dotnet-install-windows.yml
- template: jdk-setup.yml
- task: MSBuild@1
inputs:
solution: src/build/build.csproj
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: /r /p:Configuration=Release /detailedsummary
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: false
createLogFile: false
- template: build-calcmanager-windows.yml
- task: MSBuild@1
displayName: 'Build Store Packages (Xamarin)'
retryCountOnTaskFailure: 3
inputs:
solution: src/Calculator.Droid/Calculator.Droid.csproj
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: /r /p:Configuration=Release /detailedsummary /p:SkipWasmBuild=true /p:BuildForPlayStore=true /p:AndroidSigningKeyPass=$(KeystorePassword) /p:AndroidSigningStorePass=$(KeystorePassword) "/p:InformationalVersion=$(GITVERSION.INFORMATIONALVERSION)" /bl:$(build.artifactstagingdirectory)/android/msbuild-xamarin.binlog
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: false
createLogFile: false
- task: MSBuild@1
displayName: 'Build Android AppCenter package'
retryCountOnTaskFailure: 3
inputs:
solution: src/Calculator.Droid/Calculator.Droid.csproj
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: /r /p:Configuration=Release /detailedsummary /p:BuildForPlayStore=false /p:AndroidSigningKeyPass=$(KeystorePassword) /p:AndroidSigningStorePass=$(KeystorePassword) "/p:InformationalVersion=$(GITVERSION.INFORMATIONALVERSION)"
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: false
createLogFile: false
- task: CopyFiles@2
displayName: 'Publish Android Binaries'
retryCountOnTaskFailure: 3
inputs:
SourceFolder: $(build.sourcesdirectory)/src/Calculator.Droid/bin/Release
Contents: |
**/*.aab
**/*.apk
TargetFolder: $(build.artifactstagingdirectory)/android-xamarin
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
- task: PublishBuildArtifacts@1
displayName: Publish Package Artifacts
condition: always()
retryCountOnTaskFailure: 3
inputs:
pathToPublish: $(build.artifactstagingdirectory)
artifactType: container
artifactName: Calculator