77 runs-on : ubuntu-latest
88 steps :
99 - name : Checkout
10- uses : actions/checkout@v3
10+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1111
1212 - name : Setup
1313 uses : ./.github/actions/setup
2828 runs-on : ubuntu-latest
2929 steps :
3030 - name : Checkout
31- uses : actions/checkout@v3
31+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3232
3333 - name : Setup
3434 uses : ./.github/actions/setup
4040 runs-on : ubuntu-latest
4141 steps :
4242 - name : Checkout
43- uses : actions/checkout@v3
43+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4444
4545 - name : Setup
4646 uses : ./.github/actions/setup
@@ -50,17 +50,19 @@ jobs:
5050
5151 build-android :
5252 runs-on : ubuntu-latest
53+
5354 env :
5455 TURBO_CACHE_DIR : .turbo/android
56+
5557 steps :
5658 - name : Checkout
57- uses : actions/checkout@v3
59+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5860
5961 - name : Setup
6062 uses : ./.github/actions/setup
6163
6264 - name : Cache turborepo for Android
63- uses : actions/cache@v3
65+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
6466 with :
6567 path : ${{ env.TURBO_CACHE_DIR }}
6668 key : ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
7779
7880 - name : Install JDK
7981 if : env.turbo_cache_hit != 1
80- uses : actions/setup-java@v3
82+ uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
8183 with :
8284 distribution : ' zulu'
8385 java-version : ' 17'
8991
9092 - name : Cache Gradle
9193 if : env.turbo_cache_hit != 1
92- uses : actions/cache@v3
94+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
9395 with :
9496 path : |
9597 ~/.gradle/wrapper
@@ -105,23 +107,28 @@ jobs:
105107
106108 - name : Build example for Android
107109 env :
108- JAVA_OPTS : ' -XX:MaxHeapSize=6g'
110+ JAVA_OPTS : " -XX:MaxHeapSize=6g"
109111 run : |
110112 yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}"
111113
112114 build-ios :
113- runs-on : macos-14
115+ runs-on : macos-latest
116+
114117 env :
118+ XCODE_VERSION : 26
115119 TURBO_CACHE_DIR : .turbo/ios
120+ RCT_USE_RN_DEP : 1
121+ RCT_USE_PREBUILT_RNCORE : 1
122+
116123 steps :
117124 - name : Checkout
118- uses : actions/checkout@v3
125+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
119126
120127 - name : Setup
121128 uses : ./.github/actions/setup
122129
123130 - name : Cache turborepo for iOS
124- uses : actions/cache@v3
131+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
125132 with :
126133 path : ${{ env.TURBO_CACHE_DIR }}
127134 key : ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
@@ -136,25 +143,19 @@ jobs:
136143 echo "turbo_cache_hit=1" >> $GITHUB_ENV
137144 fi
138145
139- - name : Cache cocoapods
146+ - name : Use appropriate Xcode version
140147 if : env.turbo_cache_hit != 1
141- id : cocoapods-cache
142- uses : actions/cache@v3
148+ uses : maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
143149 with :
144- path : |
145- **/ios/Pods
146- key : ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }}
147- restore-keys : |
148- ${{ runner.os }}-cocoapods-
150+ xcode-version : ${{ env.XCODE_VERSION }}
149151
150152 - name : Install cocoapods
151153 if : env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
152154 run : |
153- cd example/ios
154- pod install
155- env :
156- NO_FLIPPER : 1
157- RCT_NEW_ARCH_ENABLED : 1
155+ cd example
156+ bundle install
157+ bundle exec pod repo update --verbose
158+ bundle exec pod install --project-directory=ios
158159
159160 - name : Build example for iOS
160161 run : |
0 commit comments