calculator/.vsts-ci.iOS.yml

88 строки
2.6 KiB
YAML
Исходник Обычный вид История

2019-05-21 17:55:25 +03:00
jobs:
- job: iOS
pool:
2024-02-14 17:19:42 +03:00
vmImage: macOS-13
2019-05-21 17:55:25 +03:00
variables:
2020-05-14 22:48:28 +03:00
- name: NUGET_PACKAGES
value: $(build.sourcesdirectory)/.nuget
- name: VersionCodeOffset
value: 400559 # last value for the APK release
2022-05-19 04:36:17 +03:00
- group: unoplatform.apple.ios.appstore.distribution
2019-05-21 17:55:25 +03:00
2020-07-31 23:21:31 +03:00
workspace:
clean: all
2019-05-21 17:55:25 +03:00
steps:
2024-02-14 15:35:52 +03:00
- template: build/uno-ci/dotnet-install-mac.yml
2020-09-25 20:29:12 +03:00
- template: build/uno-ci/canary-updater.yml
- template: build/uno-ci/gitversion.yml
2022-03-24 22:28:27 +03:00
- template: build/uno-ci/jdk-setup.yml
2019-05-21 17:55:25 +03:00
- task: InstallAppleCertificate@2
displayName: Install Certificate
2019-05-21 17:55:25 +03:00
inputs:
2022-05-19 04:36:17 +03:00
certSecureFile: UnoPlatform-Apple-Distribution.p12
certPwd: $(appleappstorecertificatepassword)
keychain: temp
2019-05-21 17:55:25 +03:00
- task: InstallAppleProvisioningProfile@1
displayName: Install Provisioning Profile
2019-05-21 17:55:25 +03:00
inputs:
provisioningProfileLocation: secureFiles
provProfileSecureFile: Uno_Calculator.mobileprovision
2019-05-21 17:55:25 +03:00
2022-05-19 04:36:17 +03:00
- task: InstallAppleProvisioningProfile@1
displayName: Install Provisioning Profile (Canary)
inputs:
provisioningProfileLocation: secureFiles
provProfileSecureFile: Uno_Calculator_Canary_iOS.mobileprovision
2019-05-21 21:02:25 +03:00
- bash: |
cd $(build.sourcesdirectory)/src/CalcManager
chmod +x build_ios.sh
./build_ios.sh
displayName: Build native CalcManager
2019-05-22 22:22:54 +03:00
- task: MSBuild@1
inputs:
solution: '$(build.sourcesdirectory)/src/build/build.csproj'
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
2019-11-27 22:35:51 +03:00
msbuildArguments: /r /p:BuildPlatformTarget=iOS /bl:$(build.artifactstagingdirectory)/build.binlog
2019-05-22 22:22:54 +03:00
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: true
createLogFile: true
2022-03-24 22:28:27 +03:00
- bash: |
cd $(build.sourcesdirectory)/src/Calculator.mobile
2024-02-14 15:25:09 +03:00
dotnet publish -f net8.0-ios -c Release /p:ArchiveOnBuild=true /bl:$(build.artifactstagingdirectory)/build-netcore.binlog "/p:InformationalVersion=$GITVERSION_INFORMATIONALVERSION"
2022-03-24 22:28:27 +03:00
displayName: 'Build iOS Binaries (netcore)'
2022-03-24 22:28:27 +03:00
- task: CopyFiles@2
displayName: 'Publish iOS Binaries (netcore)'
2022-03-24 22:28:27 +03:00
inputs:
2024-02-14 15:25:09 +03:00
SourceFolder: $(build.sourcesdirectory)/src/Calculator.Mobile/bin/Release/net8.0-ios
2022-05-19 04:36:17 +03:00
Contents: |
**/*.ipa
**/*.dSym/**
2022-03-24 22:28:27 +03:00
TargetFolder: $(build.artifactstagingdirectory)
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
2019-05-21 17:55:25 +03:00
- task: PublishBuildArtifacts@1
2019-05-22 22:22:54 +03:00
condition: always()
retryCountOnTaskFailure: 3
2019-05-21 17:55:25 +03:00
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: Uno-Calculator-iOS
ArtifactType: Container