forked from pointfreeco/swift-composable-architecture
-
Notifications
You must be signed in to change notification settings - Fork 0
178 lines (170 loc) · 5.02 KB
/
ci.yml
File metadata and controls
178 lines (170 loc) · 5.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- '*'
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
xcodebuild-latest:
name: xcodebuild (16)
runs-on: macos-15
strategy:
matrix:
command: [test, '']
platform: [iOS, macOS]
xcode: ['16.2']
steps:
- uses: actions/checkout@v4
- name: Debug
uses: capturecontext/swift-package-action@2.0
with:
xcode: ${{ matrix.xcode }}
cache-derived-data: true
command: xcodebuild
subcommand: ${{ matrix.command }}
platform: ${{ matrix.platform }}
workspace: '.github/package.xcworkspace'
scheme: ComposableArchitecture
config: Debug
xcodebuild:
name: xcodebuild (15)
runs-on: macos-14
strategy:
matrix:
command: [test, '']
platform: [iOS, macOS, macCatalyst, tvOS, visionOS, watchOS]
xcode: [15.2, 15.4]
exclude:
- {xcode: 15.2, command: test}
- {xcode: 15.4, command: ''}
- {xcode: 15.2, platform: MAC_CATALYST}
- {xcode: 15.2, platform: TVOS}
- {xcode: 15.2, platform: VISIONOS}
- {xcode: 15.2, platform: WATCHOS}
include:
- {xcode: 15.2, skip_release: 1}
steps:
- uses: actions/checkout@v4
- name: Debug
uses: capturecontext/swift-package-action@2.0
with:
xcode: ${{ matrix.xcode }}
cache-derived-data: true
command: xcodebuild
subcommand: ${{ matrix.command }}
platform: ${{ matrix.platform }}
workspace: '.github/package.xcworkspace'
scheme: ComposableArchitecture
config: Debug
- name: Release
if: matrix.skip_release != '1'
uses: capturecontext/swift-package-action@2.0
with:
xcode: ${{ matrix.xcode }}
cache-derived-data: true
command: xcodebuild
subcommand: ${{ matrix.command }}
platform: ${{ matrix.platform }}
workspace: '.github/package.xcworkspace'
scheme: ComposableArchitecture
config: Release
library-evolution:
name: Library (evolution)
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Build for library evolution
uses: capturecontext/swift-package-action@2.0
with:
xcode: 15.4
command: build-for-library-evolution
scheme: ComposableArchitecture
examples:
name: Examples
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: CaseStudies (SwiftUI)
uses: capturecontext/swift-package-action@2.0
with:
command: xcodebuild-raw
cache-derived-data: true
scheme: CaseStudies (SwiftUI)
platform: iOS
- name: CaseStudies (UIKit)
uses: capturecontext/swift-package-action@2.0
with:
command: xcodebuild-raw
cache-derived-data: true
scheme: CaseStudies (UIKit)
platform: iOS
- name: Search
uses: capturecontext/swift-package-action@2.0
with:
command: xcodebuild-raw
cache-derived-data: true
scheme: Search
platform: iOS
- name: SyncUps
uses: capturecontext/swift-package-action@2.0
with:
command: xcodebuild-raw
cache-derived-data: true
scheme: SyncUps
platform: iOS
- name: SpeechRecognition
uses: capturecontext/swift-package-action@2.0
with:
command: xcodebuild-raw
cache-derived-data: true
scheme: SpeechRecognition
platform: iOS
- name: TicTacToe
uses: capturecontext/swift-package-action@2.0
with:
command: xcodebuild-raw
cache-derived-data: true
scheme: TicTacToe
platform: iOS
- name: Todos
uses: capturecontext/swift-package-action@2.0
with:
command: xcodebuild-raw
cache-derived-data: true
scheme: Todos
platform: iOS
- name: VoiceMemos
uses: capturecontext/swift-package-action@2.0
with:
command: xcodebuild-raw
cache-derived-data: true
scheme: VoiceMemos
platform: iOS
check-macro-compatibility:
name: Check Macro Compatibility
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run Swift Macro Compatibility Check
uses: Matejkob/swift-macro-compatibility-check@v1
with:
run-tests: false
major-versions-only: true
check-macro-compatibility:
name: Check Macro Compatibility
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run Swift Macro Compatibility Check
uses: Matejkob/swift-macro-compatibility-check@v1
with:
run-tests: false
major-versions-only: true