@@ -3,56 +3,63 @@ on: [push]
3
3
jobs :
4
4
CI :
5
5
runs-on : macos-latest
6
- env :
7
- DEVELOPER_DIR : /Applications/Xcode_13.2.1.app/Contents/Developer
6
+ # env:
7
+ # DEVELOPER_DIR: /Applications/Xcode_13.2.1.app/Contents/Developer
8
8
steps :
9
9
- name : Checkout
10
10
uses : actions/checkout@v2
11
11
12
12
- run : bundle install
13
13
- run : pod install --repo-update
14
14
15
+ - name : Set XCode Version
16
+ run : sudo xcode-select -s /Applications/Xcode_13.2.1.app
17
+
15
18
- name : Build PinLayout-iOS
16
19
run : set -o pipefail && xcodebuild build -project PinLayout.xcodeproj -scheme PinLayout-iOS -sdk iphonesimulator15.2 -destination 'platform=iOS Simulator,name=iPhone 8,OS=15.2' | xcpretty
17
20
18
- - name : Build PinLayout-tvOS
19
- run : set -o pipefail && xcodebuild build -project PinLayout.xcodeproj -scheme PinLayout-tvOS -sdk appletvsimulator15.2 -destination 'platform=tvOS Simulator,name=Apple TV 4K (2nd generation),OS=15.2' | xcpretty
21
+ # - name: Build PinLayout-tvOS
22
+ # run: set -o pipefail && xcodebuild build -project PinLayout.xcodeproj -scheme PinLayout-tvOS -sdk appletvsimulator15.2 -destination 'platform=tvOS Simulator,name=Apple TV 4K (2nd generation),OS=15.2' | xcpretty
23
+
24
+ # - name: Build PinLayout-macOS
25
+ # run: set -o pipefail && xcodebuild build -project PinLayout.xcodeproj -scheme PinLayout-macOS -sdk macosx12.1 | xcpretty
26
+
27
+ # - name: Build PinLayoutSample - iOS 15.2
28
+ # run: set -o pipefail && xcodebuild build -workspace PinLayout.xcworkspace -scheme PinLayoutSample -sdk iphonesimulator15.2 -destination 'platform=iOS Simulator,name=iPhone 8,OS=15.2' | xcpretty
20
29
21
- - name : Build PinLayout-macOS
22
- run : set -o pipefail && xcodebuild build -project PinLayout.xcodeproj -scheme PinLayout-macOS -sdk macosx12.1 | xcpretty
30
+ # # - name: Build PinLayoutSample - iOS 13.7
31
+ # # run: set -o pipefail && xcodebuild build -workspace PinLayout.xcworkspace -scheme PinLayoutSample -sdk iphonesimulator13.7 -destination 'platform=iOS Simulator,name=iPhone 8,OS=13.7' | xcpretty
23
32
24
- - name : Build PinLayoutSample - iOS 15.2
25
- run : set -o pipefail && xcodebuild build -workspace PinLayout.xcworkspace -scheme PinLayoutSample -sdk iphonesimulator15.2 -destination 'platform=iOS Simulator,name=iPhone 8,OS=15.2' | xcpretty
33
+ # - name: iOS unit tests
34
+ # run: set -o pipefail && xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-iOS -sdk iphonesimulator15.2 -destination 'platform=iOS Simulator,name=iPhone 8,OS=15.2' | xcpretty
26
35
27
- # - name: Build PinLayoutSample - iOS 14.5
28
- # run: set -o pipefail && xcodebuild build -workspace PinLayout.xcworkspace -scheme PinLayoutSample -sdk iphonesimulator14.5 -destination 'platform=iOS Simulator,name=iPhone 8 ,OS=14.5 ' | xcpretty
36
+ # # - name: tvOS unit tests
37
+ # # run: set -o pipefail && xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-tvOS -sdk appletvos15.2 -destination 'platform=tvOS Simulator,name=Apple TV 4K (2nd generation) ,OS=15.2 ' | xcpretty
29
38
30
- # - name: Build PinLayoutSample - iOS 13.7
31
- # run: set -o pipefail && xcodebuild build -workspace PinLayout.xcworkspace -scheme PinLayoutSample -sdk iphonesimulator13.7 -destination 'platform=iOS Simulator ,name=iPhone 8,OS=13.7 ' | xcpretty
39
+ # # - name: macOS unit tests
40
+ # # run: set -o pipefail && xcodebuild test -workspace PinLayout.xcworkspace -scheme PinLayout-macOS -sdk macosx12.1 -destination 'platform=macOS ,name=Any Mac ' | xcpretty
32
41
33
- - name : iOS unit tests
34
- run : set -o pipefail && xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-iOS -sdk iphonesimulator15.2 -destination 'platform=iOS Simulator,name=iPhone 8,OS=15.2' | xcpretty
42
+ # - name: Cocoapods - iOS Empty project
43
+ # run: set -o pipefail && cd TestProjects/cocoapods/ios && arch -x86_64 pod install && xcodebuild build -workspace PinLayout-iOS .xcworkspace -scheme PinLayout-iOS -sdk iphonesimulator15.2 -destination 'platform=iOS Simulator,name=iPhone 8,OS=15.2' | xcpretty && cd ../../..
35
44
36
- # - name: tvOS unit tests
37
- # run: set -o pipefail && xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-tvOS -sdk appletvos15.2 -destination 'platform=tvOS Simulator,name=Apple TV 4K (2nd generation),OS=15.2' | xcpretty
45
+ # # - name: Cocoapods - macOS Empty project
46
+ # # run: set -o pipefail && cd TestProjects/cocoapods/macos && arch -x86_64 pod install && xcodebuild build -workspace PinLayout-macOS .xcworkspace -scheme PinLayout-macOS -sdk macosx12.1 | xcpretty && cd ../../..
38
47
39
- # - name: macOS unit tests
40
- # run: set -o pipefail && xcodebuild test -workspace PinLayout.xcworkspace -scheme PinLayout-macOS -sdk macosx12.1 -destination 'platform=macOS ,name=Any Mac ' | xcpretty
48
+ # # - name: Cocoapods - tvOS Empty project
49
+ # # run: set -o pipefail && cd TestProjects/cocoapods/tvos && arch -x86_64 pod install && xcodebuild build -workspace PinLayout-tvOS .xcworkspace -scheme PinLayout-tvOS -sdk appletvsimulator15.2 -destination 'platform=tvOS Simulator ,name=Apple TV 4K (2nd generation),OS=15.2 ' | xcpretty && cd ../../..
41
50
42
- - name : Cocoapods - iOS Empty project
43
- run : set -o pipefail && cd TestProjects/cocoapods /ios && arch -x86_64 pod install && xcodebuild build -workspace PinLayout-iOS.xcworkspace -scheme PinLayout-iOS -sdk iphonesimulator15.2 -destination 'platform=iOS Simulator,name=iPhone 8,OS=15.2' | xcpretty && cd ../../..
51
+ # # - name: Carthage - iOS Empty project
52
+ # # run: set -o pipefail && cd TestProjects/carthage /ios && rm Cartfile && echo "git \"file:///$BASEDIR\"" > Cartfile && carthage update --use-ssh --platform iOS --use-xcframeworks && xcodebuild build -project PinLayout-Carthage- iOS.xcodeproj -scheme PinLayout-Carthage- iOS -sdk iphonesimulator15.2 -destination 'platform=iOS Simulator,name=iPhone 8,OS=15.2' | xcpretty && rm Cartfile.resolved && cd ../../..
44
53
45
- # - name: Cocoapods - macOS Empty project
46
- # run: set -o pipefail && cd TestProjects/cocoapods/macos && arch -x86_64 pod install && xcodebuild build -workspace PinLayout-macOS.xcworkspace -scheme PinLayout-macOS -sdk macosx12.1 | xcpretty && cd ../../..
54
+ # - name: Swift Package Manager - iOS Empty project
55
+ # run: set -o pipefail && cd TestProjects/swift-package-manager/ios && rm -rf .build && xcodebuild build -project PinLayout-SPM-iOS.xcodeproj -scheme PinLayout-SPM-iOS -sdk iphonesimulator15.2 -destination 'platform=iOS Simulator,name=iPhone 8,OS=15.2' | xcpretty && cd ../../..
47
56
48
- # - name: Cocoapods - tvOS Empty project
49
- # run: set -o pipefail && cd TestProjects/cocoapods/tvos && arch -x86_64 pod install && xcodebuild build -workspace PinLayout-tvOS.xcworkspace -scheme PinLayout-tvOS -sdk appletvsimulator15.2 -destination 'platform=tvOS Simulator,name=Apple TV 4K (2nd generation),OS=15.2' | xcpretty && cd ../../..
57
+ - name : Set XCode Version
58
+ run : sudo xcode-select -s /Applications/Xcode_12.5.1.app
59
+ - name : Build PinLayoutSample - iOS 14.5
60
+ run : set -o pipefail && xcodebuild build -workspace PinLayout.xcworkspace -scheme PinLayoutSample -sdk iphonesimulator14.5 -destination 'platform=iOS Simulator,name=iPhone 8,OS=14.5' | xcpretty
50
61
51
- # - name: Carthage - iOS Empty project
52
- # run: set -o pipefail && cd TestProjects/carthage/ios && rm Cartfile && echo "git \"file:///$BASEDIR\"" > Cartfile && carthage update --use-ssh --platform iOS --use-xcframeworks && xcodebuild build -project PinLayout-Carthage-iOS.xcodeproj -scheme PinLayout-Carthage-iOS -sdk iphonesimulator15.2 -destination 'platform=iOS Simulator,name=iPhone 8,OS=15.2' | xcpretty && rm Cartfile.resolved && cd ../../..
53
62
54
- - name : Swift Package Manager - iOS Empty project
55
- run : set -o pipefail && cd TestProjects/swift-package-manager/ios && rm -rf .build && xcodebuild build -project PinLayout-SPM-iOS.xcodeproj -scheme PinLayout-SPM-iOS -sdk iphonesimulator15.2 -destination 'platform=iOS Simulator,name=iPhone 8,OS=15.2' | xcpretty && cd ../../..
56
63
57
64
- name : Pod lib lint
58
65
run : set -o pipefail && bundle exec pod lib lint --allow-warnings
0 commit comments