@@ -2,119 +2,135 @@ name: Swift
2
2
3
3
on :
4
4
push :
5
- branches : [ main ]
5
+ branches : [main]
6
6
pull_request :
7
- branches : [ main ]
7
+ branches : [main]
8
8
9
9
jobs :
10
10
cancel_previous :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - uses : styfle/cancel-workflow-action@0.9.1
14
- with :
15
- workflow_id : ${{ github.event.workflow.id }}
16
-
13
+ - uses : styfle/cancel-workflow-action@0.12.0
14
+ with :
15
+ workflow_id : ${{ github.event.workflow.id }}
16
+
17
17
build_and_test_spm_mac :
18
18
needs : cancel_previous
19
- runs-on : macos-latest
19
+ runs-on : macos-14
20
20
steps :
21
- - uses : maxim-lobanov/setup-xcode@v1
22
- with :
23
- xcode-version : latest-stable
24
- - uses : actions/checkout@v2
25
- - uses : webfactory/ssh-agent@v0.5.3
26
- with :
27
- ssh-private-key : ${{ secrets.SOVRAN_SSH_KEY }}
28
- - name : Build
29
- run : swift build
30
- - name : Run tests
31
- run : swift test
21
+ - uses : maxim-lobanov/setup-xcode@v1
22
+ with :
23
+ xcode-version : " 15.2 "
24
+ - uses : actions/checkout@v2
25
+ - uses : webfactory/ssh-agent@v0.8.0
26
+ with :
27
+ ssh-private-key : ${{ secrets.SOVRAN_SSH_KEY }}
28
+ - name : Build
29
+ run : swift build
30
+ - name : Run tests
31
+ run : swift test
32
32
33
33
build_and_test_spm_linux :
34
34
needs : cancel_previous
35
35
runs-on : ubuntu-latest
36
36
steps :
37
-
38
- with :
39
- swift-version : " 5.7.2"
40
- - uses : actions/checkout@v2
41
- -
uses :
webfactory/[email protected]
42
- with :
43
- ssh-private-key : ${{ secrets.SOVRAN_SSH_KEY }}
44
- - name : Build
45
- run : swift build
46
- - name : Run tests
47
- run : swift test --enable-test-discovery
37
+ - uses : sersoft-gmbh/swifty-linux-action@v3
38
+ with :
39
+ release-version : " 5.9.2"
40
+ github-token : ${{secrets.GITHUB_TOKEN}}
41
+ - uses : actions/checkout@v2
42
+ -
uses :
webfactory/[email protected]
43
+ with :
44
+ ssh-private-key : ${{ secrets.SOVRAN_SSH_KEY }}
45
+ - name : Build
46
+ run : swift build
47
+ - name : Run tests
48
+ run : swift test --enable-test-discovery
48
49
49
50
build_and_test_ios :
50
51
needs : cancel_previous
51
- runs-on : macos-latest
52
+ runs-on : macos-14
52
53
steps :
53
- - uses : maxim-lobanov/setup-xcode@v1
54
- with :
55
- xcode-version : latest-stable
56
- - uses : actions/checkout@v2
57
- -
uses :
webfactory/[email protected]
58
- with :
59
- ssh-private-key : ${{ secrets.SOVRAN_SSH_KEY }}
60
- - run : xcodebuild -scheme Segment test -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 13'
61
-
54
+ - uses : maxim-lobanov/setup-xcode@v1
55
+ with :
56
+ xcode-version : " 15.2"
57
+ - uses : actions/checkout@v2
58
+ -
uses :
webfactory/[email protected]
59
+ with :
60
+ ssh-private-key : ${{ secrets.SOVRAN_SSH_KEY }}
61
+ - run : xcodebuild -scheme Segment test -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15'
62
62
63
63
build_and_test_tvos :
64
64
needs : cancel_previous
65
- runs-on : macos-latest
65
+ runs-on : macos-14
66
66
steps :
67
- - uses : maxim-lobanov/setup-xcode@v1
68
- with :
69
- xcode-version : latest-stable
70
- - uses : actions/checkout@v2
71
- - uses : webfactory/ssh-agent@v0.5.3
72
- with :
73
- ssh-private-key : ${{ secrets.SOVRAN_SSH_KEY }}
74
- - run : xcodebuild -scheme Segment test -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV'
67
+ - uses : maxim-lobanov/setup-xcode@v1
68
+ with :
69
+ xcode-version : " 15.2 "
70
+ - uses : actions/checkout@v2
71
+ - uses : webfactory/ssh-agent@v0.8.0
72
+ with :
73
+ ssh-private-key : ${{ secrets.SOVRAN_SSH_KEY }}
74
+ - run : xcodebuild -scheme Segment test -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV'
75
75
76
76
build_and_test_watchos :
77
77
needs : cancel_previous
78
- runs-on : macos-latest
78
+ runs-on : macos-14
79
+ steps :
80
+ - uses : maxim-lobanov/setup-xcode@v1
81
+ with :
82
+ xcode-version : " 15.2"
83
+ - uses : actions/checkout@v2
84
+ -
uses :
webfactory/[email protected]
85
+ with :
86
+ ssh-private-key : ${{ secrets.SOVRAN_SSH_KEY }}
87
+ - run : xcodebuild -scheme Segment test -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch Series 9 (45mm)'
88
+
89
+ build_and_test_visionos :
90
+ needs : cancel_previous
91
+ runs-on : macos-14
79
92
steps :
80
- - uses : maxim-lobanov/setup-xcode@v1
81
- with :
82
- xcode-version : latest-stable
83
- - uses : actions/checkout@v2
84
- -
uses :
webfactory/[email protected]
85
- with :
86
- ssh-private-key : ${{ secrets.SOVRAN_SSH_KEY }}
87
- - run : xcodebuild -scheme Segment test -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch Series 8 (45mm)'
88
-
93
+ - uses : maxim-lobanov/setup-xcode@v1
94
+ with :
95
+ xcode-version : " 15.2"
96
+ - uses : actions/checkout@v2
97
+ -
uses :
webfactory/[email protected]
98
+ with :
99
+ ssh-private-key : ${{ secrets.SOVRAN_SSH_KEY }}
100
+ - run : defaults write com.apple.dt.Xcode AllowUnsupportedVisionOSHost -bool YES
101
+ - run : defaults write com.apple.CoreSimulator AllowUnsupportedVisionOSHost -bool YES
102
+ - run : xcodebuild -downloadPlatform visionOS
103
+ - run : echo - skip until apple fixes this - xcodebuild -scheme Segment test -sdk xrsimulator -destination 'platform=visionOS Simulator,name=Apple Vision Pro'
104
+ - run : xcodebuild -scheme Segment -sdk xrsimulator -destination 'platform=visionOS Simulator,name=Apple Vision Pro'
105
+
89
106
build_and_test_examples :
90
107
needs : cancel_previous
91
- runs-on : macos-latest
108
+ runs-on : macos-14
92
109
steps :
93
- - uses : maxim-lobanov/setup-xcode@v1
94
- with :
95
- xcode-version : latest-stable
96
- - uses : actions/checkout@v2
97
- - uses : webfactory/ssh-agent@v0.5.3
98
- with :
99
- ssh-private-key : ${{ secrets.SOVRAN_SSH_KEY }}
100
- - name : build for ios simulator
101
- run : |
110
+ - uses : maxim-lobanov/setup-xcode@v1
111
+ with :
112
+ xcode-version : " 15.2 "
113
+ - uses : actions/checkout@v2
114
+ - uses : webfactory/ssh-agent@v0.8.0
115
+ with :
116
+ ssh-private-key : ${{ secrets.SOVRAN_SSH_KEY }}
117
+ - name : build for ios simulator
118
+ run : |
102
119
cd Examples/apps/BasicExample
103
120
xcodebuild -workspace "BasicExample.xcworkspace" -scheme "BasicExample" -sdk iphonesimulator
104
- - name : build for ios simulator
105
- run : |
121
+ - name : build for ios simulator
122
+ run : |
106
123
cd Examples/apps/ObjCExample
107
124
xcodebuild -workspace "ObjCExample.xcworkspace" -scheme "ObjCExample" -sdk iphonesimulator
108
- - name : build for ios simulator
109
- run : |
125
+ - name : build for ios simulator
126
+ run : |
110
127
cd Examples/apps/SegmentUIKitExample
111
128
xcodebuild -workspace "SegmentUIKitExample.xcworkspace" -scheme "SegmentUIKitExample" -sdk iphonesimulator
112
- - name : build for ios simulator
113
- run : |
129
+ - name : build for ios simulator
130
+ run : |
114
131
cd Examples/apps/SegmentWeatherWidget
115
132
xcodebuild -workspace "SegmentWeatherWidget.xcworkspace" -scheme "SegmentWeatherWidget" -sdk iphonesimulator
116
- - name : build for mac catalyst
117
- run : |
133
+ - name : build for mac catalyst
134
+ run : |
118
135
cd Examples/apps/SegmentUIKitExample
119
136
xcodebuild -workspace "SegmentUIKitExample.xcworkspace" -scheme "SegmentUIKitExample" -destination 'platform=macOS,variant=Mac Catalyst'
120
-
0 commit comments