@@ -89,38 +89,10 @@ jobs:
89
89
- name : Run TypeScript on the sources
90
90
run : cd example && npx tsc --noEmit
91
91
92
- build-android-app-old-arch :
93
- name : Build example app Android
94
- runs-on : ubuntu-latest
95
- needs : [verify-example-sources]
96
-
97
- steps :
98
- - uses : actions/checkout@v4
99
-
100
- - name : Pull the npm dependencies
101
- run : npm install
102
-
103
- - uses : actions/setup-java@v4
104
- with :
105
- distribution : ' zulu'
106
- java-version : ' 17'
107
-
108
- - name : Use old arch config
109
- id : cache-old-arch-gradle
110
- uses : actions/cache@v4
111
- env :
112
- cache-name : cached-gradle-old-arch-prop
113
- with :
114
- path : example/android/gradle.properties
115
- key : gradle-prop-old-arch-config
116
-
117
- - name : Build the Android OS app
118
- run : cd example/android && ./gradlew assembleDebug
119
-
120
92
build-android-app-new-arch :
121
93
name : Build example app Android (Fabric)
122
94
runs-on : ubuntu-latest
123
- needs : [build-android-app-old-arch ]
95
+ needs : [verify-example-sources ]
124
96
125
97
steps :
126
98
- uses : actions/checkout@v4
@@ -136,58 +108,10 @@ jobs:
136
108
- name : Build the Android OS app
137
109
run : cd example/android && ./gradlew assembleDebug
138
110
139
- build-iOS-app :
140
- name : Build example app iOS
141
- runs-on : macos-latest
142
- needs : [verify-example-sources]
143
- steps :
144
- - uses : actions/checkout@v4
145
-
146
- - name : Cache node modules
147
- id : cache-npm
148
- uses : actions/cache@v4
149
- env :
150
- cache-name : cached-ios-npm-deps
151
- with :
152
- path : example/node_modules
153
- key : ${{ hashFiles('./example/package-lock.json') }}-${{ hashFiles('./package/package-lock.json') }}
154
-
155
- - name : Install required dependencies on cache miss (npm)
156
- if : steps.cache-npm.outputs.cache-hit != 'true'
157
- run : |
158
- npm install
159
-
160
- - name : Cache Pods
161
- id : cache-pods
162
- uses : actions/cache@v4
163
- env :
164
- cache-name : cached-ios-pods-deps
165
- with :
166
- path : example/ios/Pods
167
- key : ${{ hashFiles('./example/ios/Podfile.lock') }}
168
-
169
- - name : Install required dependencies on cache miss (Pods)
170
- if : steps.cache-pods.outputs.cache-hit != 'true'
171
- run : |
172
- cd example/ios && pod install
173
-
174
- - name : Reinstall Pods only if using cached ones
175
- if : steps.cache-pods.outputs.cache-hit == 'true'
176
- run : cd example/ios && pod install
177
-
178
- - name : Use the current package sources in build
179
- run : cd example && npm run refresh-package
180
-
181
- - name : Build iOS
182
- run : |
183
- xcodebuild -workspace example.xcworkspace -scheme example -destination "platform=iOS Simulator" CODE_SIGNING_ALLOWED=NO COMPILER_INDEX_STORE_ENABLE=NO SKIP_BUNDLING=TRUE build | xcbeautify --renderer github-actions
184
- working-directory : example/ios
185
-
186
-
187
111
build-iOS-new-arch-app :
188
112
name : Build example app iOS (Fabric)
189
113
runs-on : macos-latest
190
- needs : [build-iOS-app ]
114
+ needs : [verify-example-sources ]
191
115
steps :
192
116
- uses : actions/checkout@v4
193
117
@@ -220,34 +144,13 @@ jobs:
220
144
- name : Install required dependencies on cache miss (Pods)
221
145
if : steps.cache-pods.outputs.cache-hit != 'true'
222
146
run : |
223
- cd example/ios && RCT_NEW_ARCH_ENABLED=1 pod install
147
+ cd example/ios && pod install
224
148
225
149
- name : Reinstall Pods only if using cached ones
226
150
if : steps.cache-pods.outputs.cache-hit == 'true'
227
- run : cd example/ios && RCT_NEW_ARCH_ENABLED=1 pod install
151
+ run : cd example/ios && pod install
228
152
229
153
- name : Build iOS - Fabric
230
154
run : |
231
155
xcodebuild -workspace example.xcworkspace -scheme example -destination "platform=iOS Simulator" CODE_SIGNING_ALLOWED=NO COMPILER_INDEX_STORE_ENABLE=NO SKIP_BUNDLING=TRUE build | xcbeautify --renderer github-actions
232
156
working-directory : example/ios
233
-
234
-
235
- build-Windows-app :
236
- name : Build example app Windows
237
- runs-on : windows-2022
238
- needs : [verify-example-sources]
239
- steps :
240
- - name : Ensure the cross-platform Git on Windows
241
- run : git config --global core.autocrlf false
242
-
243
- - name : Checkout repository
244
- uses : actions/checkout@v4
245
-
246
- - name : Install dependencies
247
- run : npm install
248
-
249
- - name : Restore NuGet packages
250
- run : nuget restore .\example\windows\example.sln
251
-
252
- - name : Build the Windows OS app
253
- run : cd example; npx react-native run-windows --arch x64 --no-launch --no-deploy --logging --sln .\windows\example.sln --proj .\windows\example\example.vcxproj
0 commit comments