Skip to content

Commit 030c0b6

Browse files
Build xcframeworks on PR and cron (#435)
1 parent b74cb52 commit 030c0b6

File tree

2 files changed

+72
-20
lines changed

2 files changed

+72
-20
lines changed

.github/workflows/cron-checks.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,32 @@ jobs:
146146
MATRIX_CONTEXT: ${{ toJson(matrix) }}
147147
if: failure() && github.event_name == 'schedule'
148148

149+
build-xcode15:
150+
name: Build SDKs (Xcode 15.0)
151+
runs-on: macos-13
152+
if: ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
153+
env:
154+
XCODE_VERSION: "15.0.1"
155+
steps:
156+
- uses: actions/[email protected]
157+
- uses: ./.github/actions/ruby-cache
158+
- name: List Xcode versions xcversion sees
159+
run: mdfind "kMDItemCFBundleIdentifier = 'com.apple.dt.Xcode'"
160+
timeout-minutes: 25
161+
- name: Build SwiftUI
162+
run: bundle exec fastlane test_ui device:"iPhone 15" build_for_testing:true
163+
timeout-minutes: 25
164+
- name: Install Bot SSH Key
165+
uses: webfactory/[email protected]
166+
with:
167+
ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }}
168+
- name: Build XCFrameworks
169+
run: bundle exec fastlane build_xcframeworks
170+
timeout-minutes: 25
171+
env:
172+
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
173+
APPSTORE_API_KEY: ${{ secrets.APPSTORE_API_KEY }}
174+
149175
automated-code-review:
150176
name: Automated Code Review
151177
runs-on: macos-12

.github/workflows/smoke-checks.yml

Lines changed: 46 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,6 @@ env:
2222
IOS_SIMULATOR_DEVICE: "iPhone 15 Pro (17.2)"
2323

2424
jobs:
25-
automated-code-review:
26-
name: Automated Code Review
27-
runs-on: macos-12
28-
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
GITHUB_PR_NUM: ${{ github.event.number }}
31-
XCODE_VERSION: "14.0.1"
32-
if: ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
33-
steps:
34-
- uses: actions/[email protected]
35-
- uses: ./.github/actions/bootstrap
36-
- name: Run Danger
37-
run: bundle exec danger
38-
- name: Run Fastlane Linting
39-
run: bundle exec fastlane rubocop
40-
- name: Run SwiftFormat Linting
41-
run: ./Scripts/run-linter.sh
42-
- name: Run Podspec Linting
43-
run: bundle exec fastlane pod_lint
44-
4525
build-test-app-and-frameworks:
4626
name: Build Test App and Frameworks
4727
runs-on: macos-14
@@ -204,3 +184,49 @@ jobs:
204184
- uses: ./.github/actions/xcode-cache
205185
- name: Build Demo App
206186
run: bundle exec fastlane build_demo
187+
188+
build-xcode15:
189+
name: Build SDKs (Xcode 15.0)
190+
runs-on: macos-13
191+
if: ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
192+
env:
193+
XCODE_VERSION: "15.0.1"
194+
steps:
195+
- uses: actions/[email protected]
196+
- uses: ./.github/actions/ruby-cache
197+
- name: List Xcode versions xcversion sees
198+
run: mdfind "kMDItemCFBundleIdentifier = 'com.apple.dt.Xcode'"
199+
timeout-minutes: 25
200+
- name: Build SwiftUI
201+
run: bundle exec fastlane test_ui device:"iPhone 15" build_for_testing:true
202+
timeout-minutes: 25
203+
- name: Install Bot SSH Key
204+
uses: webfactory/[email protected]
205+
with:
206+
ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }}
207+
- name: Build XCFrameworks
208+
run: bundle exec fastlane build_xcframeworks
209+
timeout-minutes: 25
210+
env:
211+
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
212+
APPSTORE_API_KEY: ${{ secrets.APPSTORE_API_KEY }}
213+
214+
automated-code-review:
215+
name: Automated Code Review
216+
runs-on: macos-12
217+
env:
218+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
219+
GITHUB_PR_NUM: ${{ github.event.number }}
220+
XCODE_VERSION: "14.0.1"
221+
if: ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
222+
steps:
223+
- uses: actions/[email protected]
224+
- uses: ./.github/actions/bootstrap
225+
- name: Run Danger
226+
run: bundle exec danger
227+
- name: Run Fastlane Linting
228+
run: bundle exec fastlane rubocop
229+
- name: Run SwiftFormat Linting
230+
run: ./Scripts/run-linter.sh
231+
- name: Run Podspec Linting
232+
run: bundle exec fastlane pod_lint

0 commit comments

Comments
 (0)