TEMP remove apple silicon from CI
This commit is contained in:
Родитель
44b1ca51ff
Коммит
854d20f74e
|
@ -32,76 +32,6 @@ jobs:
|
||||||
xcodeDeveloperDir: '$(XCODE_PATH)'
|
xcodeDeveloperDir: '$(XCODE_PATH)'
|
||||||
args: 'SYMROOT="$(Build.BinariesDirectory)"'
|
args: 'SYMROOT="$(Build.BinariesDirectory)"'
|
||||||
|
|
||||||
- task: Xcode@5
|
|
||||||
displayName: 'Build CrashReporter macOS Framework for Apple Silicon'
|
|
||||||
inputs:
|
|
||||||
xcWorkspacePath: CrashReporter.xcodeproj
|
|
||||||
scheme: 'CrashReporter macOS Framework'
|
|
||||||
xcodeVersion: specifyPath
|
|
||||||
xcodeDeveloperDir: '/Applications/Xcode_12.2.app/Contents/Developer'
|
|
||||||
args: 'SYMROOT="$(Build.BinariesDirectory)"'
|
|
||||||
|
|
||||||
- task: Xcode@5
|
|
||||||
displayName: 'Build plcrashutil for Apple Silicon'
|
|
||||||
inputs:
|
|
||||||
xcWorkspacePath: CrashReporter.xcodeproj
|
|
||||||
scheme: 'plcrashutil'
|
|
||||||
xcodeVersion: specifyPath
|
|
||||||
xcodeDeveloperDir: '/Applications/Xcode_12.2.app/Contents/Developer'
|
|
||||||
args: 'SYMROOT="$(Build.BinariesDirectory)"'
|
|
||||||
|
|
||||||
- template: build-apple-silicon-template.yml
|
|
||||||
parameters:
|
|
||||||
scheme: 'CrashReporter iOS Framework'
|
|
||||||
destination:
|
|
||||||
destinationPlatformOption: iOS
|
|
||||||
destinationTypeOption: simulators
|
|
||||||
destinationSimulators: 'iPhone 11'
|
|
||||||
|
|
||||||
- template: build-apple-silicon-template.yml
|
|
||||||
parameters:
|
|
||||||
scheme: 'CrashReporter iOS Framework'
|
|
||||||
destination:
|
|
||||||
destinationPlatformOption: macOS
|
|
||||||
|
|
||||||
- template: build-apple-silicon-template.yml
|
|
||||||
parameters:
|
|
||||||
scheme: 'CrashReporter tvOS Framework'
|
|
||||||
destination:
|
|
||||||
destinationPlatformOption: tvOS
|
|
||||||
destinationTypeOption: simulators
|
|
||||||
destinationSimulators: 'Apple TV'
|
|
||||||
|
|
||||||
- bash: |
|
|
||||||
cp -f "Release-macosx/libCrashReporter.a" "Release/Static/libCrashReporter-MacOSX-Static.a"
|
|
||||||
lipo -info "Release/Static/libCrashReporter-MacOSX-Static.a"
|
|
||||||
rm -rf "Release/Mac OS X Framework/CrashReporter.framework" "Release/Mac OS X Framework/CrashReporter.framework.dSYM"
|
|
||||||
cp -R "Release-macosx/CrashReporter.framework" "Release-macosx/CrashReporter.framework.dSYM" "Release/Mac OS X Framework"
|
|
||||||
lipo -info "Release/Mac OS X Framework/CrashReporter.framework/CrashReporter"
|
|
||||||
cp -f "Release-macosx/plcrashutil" "Release/Tools"
|
|
||||||
lipo -info "Release/Tools/plcrashutil"
|
|
||||||
|
|
||||||
rm -rf "Release-xcframework/CrashReporter.xcframework/macos-x86_64/CrashReporter.framework"
|
|
||||||
cp -R "Release-macosx/CrashReporter.framework" "Release-xcframework/CrashReporter.xcframework/macos-x86_64"
|
|
||||||
lipo "Release-xcframework/CrashReporter.xcframework/ios-i386_x86_64-simulator/CrashReporter.framework/CrashReporter" \
|
|
||||||
"Release-iphonesimulator/CrashReporter.framework/CrashReporter" \
|
|
||||||
-create -output "Release-xcframework/CrashReporter.xcframework/ios-i386_x86_64-simulator/CrashReporter.framework/CrashReporter" || exit 1
|
|
||||||
lipo "Release-xcframework/CrashReporter.xcframework/ios-x86_64-maccatalyst/CrashReporter.framework/Versions/A/CrashReporter" \
|
|
||||||
"Release-maccatalyst/CrashReporter.framework/Versions/A/CrashReporter" \
|
|
||||||
-create -output "Release-xcframework/CrashReporter.xcframework/ios-x86_64-maccatalyst/CrashReporter.framework/Versions/A/CrashReporter" || exit 1
|
|
||||||
lipo "Release-xcframework/CrashReporter.xcframework/tvos-x86_64-simulator/CrashReporter.framework/CrashReporter" \
|
|
||||||
"Release-appletvsimulator/CrashReporter.framework/CrashReporter" \
|
|
||||||
-create -output "Release-xcframework/CrashReporter.xcframework/tvos-x86_64-simulator/CrashReporter.framework/CrashReporter" || exit 1
|
|
||||||
|
|
||||||
rm -rf "Release/CrashReporter.xcframework"
|
|
||||||
for framework in Release-xcframework/CrashReporter.xcframework/*/CrashReporter.framework; do
|
|
||||||
xcframeworks+=( -framework "$framework")
|
|
||||||
done
|
|
||||||
xcodebuild -create-xcframework "${xcframeworks[@]}" -output "Release/CrashReporter.xcframework"
|
|
||||||
ls "Release/CrashReporter.xcframework"
|
|
||||||
displayName: 'Combine Binaries'
|
|
||||||
workingDirectory: '$(Build.BinariesDirectory)'
|
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
VERSION="$(cd $BUILD_SOURCESDIRECTORY && agvtool vers -terse)"
|
VERSION="$(cd $BUILD_SOURCESDIRECTORY && agvtool vers -terse)"
|
||||||
[[ $BUILD_SOURCEBRANCH != 'refs/heads/master' ]] && VERSION="$VERSION+$(cd $BUILD_SOURCESDIRECTORY && git rev-parse --short $BUILD_SOURCEVERSION)"
|
[[ $BUILD_SOURCEBRANCH != 'refs/heads/master' ]] && VERSION="$VERSION+$(cd $BUILD_SOURCESDIRECTORY && git rev-parse --short $BUILD_SOURCEVERSION)"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче