mirror of
https://github.com/signalapp/libsignal.git
synced 2026-04-26 01:35:22 +02:00
ci: Skip building for Intel simulator in Swift CocoaPods test
This commit is contained in:
@@ -24,7 +24,7 @@ Pod::Spec.new do |s|
|
||||
'acknowledgments/acknowledgments-ios.plist',
|
||||
]
|
||||
|
||||
s.pod_target_xcconfig = {
|
||||
pod_target_xcconfig = {
|
||||
'HEADER_SEARCH_PATHS' => '$(PODS_TARGET_SRCROOT)/swift/Sources/SignalFfi',
|
||||
# Duplicate this here to make sure the search path is passed on to Swift dependencies.
|
||||
'SWIFT_INCLUDE_PATHS' => '$(HEADER_SEARCH_PATHS)',
|
||||
@@ -59,6 +59,14 @@ Pod::Spec.new do |s|
|
||||
'ARCHS[sdk=iphoneos*]' => 'arm64',
|
||||
}
|
||||
|
||||
if ENV['LIBSIGNAL_TESTING_ONLY_ACTIVE_ARCH']
|
||||
pod_target_xcconfig['ONLY_ACTIVE_ARCH'] = 'YES'
|
||||
|
||||
s.user_target_xcconfig = { 'ONLY_ACTIVE_ARCH' => 'YES' }
|
||||
end
|
||||
|
||||
s.pod_target_xcconfig = pod_target_xcconfig
|
||||
|
||||
s.script_phases = [
|
||||
{ name: 'Download libsignal-ffi if not in cache',
|
||||
execution_position: :before_compile,
|
||||
@@ -103,10 +111,11 @@ Pod::Spec.new do |s|
|
||||
test_spec.preserve_paths = [
|
||||
'swift/Tests/*/Resources',
|
||||
]
|
||||
test_spec.pod_target_xcconfig = {
|
||||
test_pod_target_xcconfig = {
|
||||
# Don't also link into the test target.
|
||||
'LIBSIGNAL_FFI_LIB_TO_LINK' => '',
|
||||
}
|
||||
test_spec.pod_target_xcconfig = test_pod_target_xcconfig
|
||||
|
||||
# Ideally we'd do this at run time, not configuration time, but CocoaPods doesn't make that easy.
|
||||
# This is good enough.
|
||||
|
||||
Reference in New Issue
Block a user