@@ -176,32 +176,26 @@ jobs:
176176 - name : Setup
177177 uses : ./.github/actions/setup
178178
179- # - name: Cache turborepo for iOS
180- # uses: actions/cache@v4
181- # with:
182- # path: ${{ env.TURBO_CACHE_DIR }}
183- # # path: ~/.cache/yarn
184- # key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
185- # restore-keys: |
186- # ${{ runner.os }}-turborepo-ios-
179+ - name : Install macOS dependencies
180+ run : |
181+ brew tap wix/brew
182+ brew install applesimutils
183+ env :
184+ HOMEBREW_NO_AUTO_UPDATE : 1
185+ HOMEBREW_NO_INSTALL_CLEANUP : 1
187186
188- # - name: Checkout iterable-swift-sdk
189- # uses: actions/checkout@v4
190- # with:
191- # repository: Iterable/iterable-swift-sdk
187+ - name : Setup Ruby
188+ uses : ruby/setup-ruby@v1
189+ with :
190+ bundler-cache : true
191+ ruby-version : 2.6.10
192192
193- # - name: Debug Cache Key
194- # run: |
195- # echo "Cache key would be: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}"
193+ - name : Example App Yarn install
194+ run : |
195+ cd example
196+ yarn install --frozen-lockfile
197+ cd ..
196198
197- # - name: Check turborepo cache for iOS
198- # run: |
199- # TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:ios').cache.status")
200- #
201- # if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
202- # echo "turbo_cache_hit=1" >> $GITHUB_ENV
203- # fi
204- #
205199# - name: Cache cocoapods
206200# if: env.turbo_cache_hit != 1
207201# id: cocoapods-cache
@@ -212,19 +206,13 @@ jobs:
212206# key: ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }}
213207# restore-keys: |
214208# ${{ runner.os }}-cocoapods-
215- # - name: setup swift
216- # uses: swift-actions/setup-swift@v2
217- # with:
218- # swift-version: "6.0"
219- #
220- # - name: verify swift version
221- # run: swift --version
222209
223210 - name : Install cocoapods
224211 if : env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
225212 run : |
226213 cd example/ios
227214 pod install --repo-update
215+ cd -
228216 env :
229217 NO_FLIPPER : 1
230218
@@ -256,23 +244,23 @@ jobs:
256244# yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
257245# echo "${{ env.TURBO_CACHE_DIR }}"
258246
259- - name : Build example for iOS
260- run : |
261- cd example/ios
262-
263- xcodebuild -list -workspace ReactNativeSdkExample.xcworkspace
264-
265- xcodebuild -list -project ReactNativeSdkExample.xcodeproj
266-
267- xcodebuild clean build \
268- -workspace ReactNativeSdkExample.xcworkspace \
269- -scheme ReactNativeSdkExample \
270- CODE_SIGN_IDENTITY="" \
271- CODE_SIGNING_REQUIRED=NO \
272- CODE_SIGNING_ALLOWED=NO \
273- BUILD_LIBRARY_FOR_DISTRIBUTION=NO \
274- APPLICATION_EXTENSION_API_ONLY=YES \
275- continue-on-error : true
247+ # - name: Build example for iOS
248+ # run: |
249+ # cd example/ios
250+ #
251+ # xcodebuild -list -workspace ReactNativeSdkExample.xcworkspace
252+ #
253+ # xcodebuild -list -project ReactNativeSdkExample.xcodeproj
254+ #
255+ # xcodebuild clean build \
256+ # -workspace ReactNativeSdkExample.xcworkspace \
257+ # -scheme ReactNativeSdkExample \
258+ # CODE_SIGN_IDENTITY="" \
259+ # CODE_SIGNING_REQUIRED=NO \
260+ # CODE_SIGNING_ALLOWED=NO \
261+ # BUILD_LIBRARY_FOR_DISTRIBUTION=NO \
262+ # APPLICATION_EXTENSION_API_ONLY=YES \
263+ # continue-on-error: true
276264
277265# ARCHS=arm64
278266#
0 commit comments