@@ -89,38 +89,10 @@ jobs:
8989 - name : Run TypeScript on the sources
9090 run : cd example && npx tsc --noEmit
9191
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-
12092 build-android-app-new-arch :
12193 name : Build example app Android (Fabric)
12294 runs-on : ubuntu-latest
123- needs : [build-android-app-old-arch ]
95+ needs : [verify-example-sources ]
12496
12597 steps :
12698 - uses : actions/checkout@v4
@@ -136,58 +108,10 @@ jobs:
136108 - name : Build the Android OS app
137109 run : cd example/android && ./gradlew assembleDebug
138110
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-
187111 build-iOS-new-arch-app :
188112 name : Build example app iOS (Fabric)
189113 runs-on : macos-latest
190- needs : [build-iOS-app ]
114+ needs : [verify-example-sources ]
191115 steps :
192116 - uses : actions/checkout@v4
193117
@@ -220,34 +144,13 @@ jobs:
220144 - name : Install required dependencies on cache miss (Pods)
221145 if : steps.cache-pods.outputs.cache-hit != 'true'
222146 run : |
223- cd example/ios && RCT_NEW_ARCH_ENABLED=1 pod install
147+ cd example/ios && pod install
224148
225149 - name : Reinstall Pods only if using cached ones
226150 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
228152
229153 - name : Build iOS - Fabric
230154 run : |
231155 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
232156 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