Skip to content

Commit 941e82a

Browse files
Do not build old arch in CI
1 parent e1f9ed4 commit 941e82a

File tree

1 file changed

+4
-80
lines changed

1 file changed

+4
-80
lines changed

.github/workflows/ReactNativeSlider-CI.yml

Lines changed: 4 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -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,11 +144,11 @@ 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: |

0 commit comments

Comments
 (0)