File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 22
22
key : 4-carthage-verification-${{ runner.os }}-${{ hashFiles('Cartfile.resolved') }}
23
23
- name : Carthage verification
24
24
run : |
25
- carthage checkout
26
- carthage build --cache-builds --no-skip-current
25
+ ./script/ carthage checkout
26
+ ./script/ carthage build --cache-builds --no-skip-current
27
27
28
28
swiftpm-macos :
29
29
if : ${{ github.event_name == 'push' || ( github.event_name == 'pull_request' && github.event.label.name == 'ci:verify' ) }}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
s . tvos . deployment_target = "9.0"
17
17
s . source = { :git => "https://github.com/ReactiveCocoa/ReactiveSwift.git" , :tag => "#{ s . version } " }
18
18
# Directory glob for all Swift files
19
- s . source_files = "Sources/*.{swift}"
19
+ s . source_files = [ "Sources/*.{swift}" , "Sources/**/*.{swift}" ]
20
20
21
21
s . pod_target_xcconfig = { "OTHER_SWIFT_FLAGS[config=Release]" => "$(inherited) -suppress-warnings" }
22
22
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # Adopted from https://github.com/Carthage/Carthage/issues/3019#issuecomment-665136323
4
+
5
+ # carthage.sh
6
+ # Usage example: ./carthage.sh build --platform iOS
7
+
8
+ set -euo pipefail
9
+
10
+ xcconfig=$( mktemp /tmp/static.xcconfig.XXXXXX)
11
+ trap ' rm -f "$xcconfig"' INT TERM HUP EXIT
12
+
13
+ # For Xcode 12 make sure EXCLUDED_ARCHS is set to arm architectures otherwise
14
+ # the build will fail on lipo due to duplicate architectures.
15
+ echo ' EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200 = arm64 arm64e armv7 armv7s armv6 armv8' >> $xcconfig
16
+ echo ' EXCLUDED_ARCHS = $(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT)__XCODE_$(XCODE_VERSION_MAJOR))' >> $xcconfig
17
+
18
+ export XCODE_XCCONFIG_FILE=" $xcconfig "
19
+ carthage " $@ "
You can’t perform that action at this time.
0 commit comments