Skip to content

Commit b6adad4

Browse files
fadi-georgeclaude
andcommitted
ci: [SDK-5818] build the iOS e2e app with Swift Package Manager
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent e47c0ba commit b6adad4

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

‎.github/workflows/e2e.yml‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,25 @@ jobs:
8989
with:
9090
onesignal-app-id: ${{ vars.APPIUM_ONESIGNAL_APP_ID }}
9191
onesignal-api-key: ${{ secrets.APPIUM_ONESIGNAL_API_KEY }}
92-
install-pods: 'true'
92+
93+
- name: Cache React Native SwiftPM artifacts
94+
uses: actions/cache@v5
95+
with:
96+
path: ~/Library/Caches/ReactNative/spm-artifacts
97+
key: rn-spm-artifacts-${{ runner.os }}-${{ hashFiles('examples/demo/bun.lock') }}
98+
restore-keys: rn-spm-artifacts-${{ runner.os }}-
9399

94100
- name: Cache Xcode DerivedData
95101
uses: actions/cache@v5
96102
with:
97103
path: examples/demo/ios/build
98-
key: deriveddata-${{ runner.os }}-${{ hashFiles('examples/demo/ios/Podfile.lock') }}
104+
key: deriveddata-${{ runner.os }}-${{ hashFiles('examples/demo/bun.lock', 'examples/demo/ios/demo.xcodeproj/project.pbxproj') }}
99105
restore-keys: deriveddata-${{ runner.os }}-
100106

107+
- name: Generate SwiftPM packages
108+
working-directory: examples/demo
109+
run: vp run update:spm
110+
101111
- name: Set up iOS codesigning
102112
uses: OneSignal/sdk-shared/.github/actions/setup-ios-demo-codesigning@main
103113
with:
@@ -111,7 +121,7 @@ jobs:
111121
working-directory: examples/demo/ios
112122
run: |
113123
xcodebuild archive \
114-
-workspace demo.xcworkspace \
124+
-project demo.xcodeproj \
115125
-scheme demo \
116126
-configuration Release \
117127
-sdk iphoneos \

0 commit comments

Comments
 (0)