Skip to content

Commit 89f5226

Browse files
authored
chore: Build Amplify for SPM in CircleCI (#1496)
1 parent 2aaaf2c commit 89f5226

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.circleci/config.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,19 @@ jobs:
133133
path: build/reports
134134
- upload_artifacts
135135

136+
build_amplify_spm:
137+
<<: *defaults
138+
working_directory: ~/amplify-ios/.swiftpm/xcode
139+
steps:
140+
- *restore_repo
141+
- pre_start_simulator
142+
- restore_gems
143+
- check_bundle
144+
- make_artifacts_directory
145+
- run:
146+
name: Build amplify for SPM
147+
command: xcodebuild build-for-testing -workspace package.xcworkspace -scheme Amplify-Package -sdk iphonesimulator -destination "${destination}" | tee "artifacts/build-Ampify-for-SPM.log" | xcpretty
148+
136149
build_test_aws_plugins_core:
137150
<<: *defaults
138151
steps:
@@ -212,6 +225,7 @@ jobs:
212225
deploy_requires: &deploy_requires
213226
requires:
214227
- build_test_amplify
228+
- build_amplify_spm
215229
- build_test_aws_plugins_core
216230
- unit_test_analytics
217231
- unit_test_api
@@ -234,6 +248,9 @@ workflows:
234248
- build_test_aws_plugins_core:
235249
requires:
236250
- install_gems
251+
- build_amplify_spm:
252+
requires:
253+
- install_gems
237254
- plugin_unit_test:
238255
name: unit_test_analytics
239256
path: Analytics

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Thumbs.db
1515
**/*.xcuserdata
1616

1717
*.xcworkspace/
18+
!.swiftpm/xcode/package.xcworkspace
1819
Amplify.xcodeproj/xcuserdata
1920
Amplify.xcworkspace/xcuserdata
2021
xcuserdata

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)