Skip to content

Commit eefa345

Browse files
Build new arch as default and old arch with dedicated cached gradle.properties
1 parent 7c6c715 commit eefa345

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/ReactNativeSlider-CI.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
- name: Run TypeScript on the sources
9090
run: cd example && npx tsc --noEmit
9191

92-
build-android-app:
92+
build-android-app-old-arch:
9393
name: Build example app Android
9494
runs-on: ubuntu-latest
9595
needs: [verify-example-sources]
@@ -105,6 +105,15 @@ jobs:
105105
distribution: 'zulu'
106106
java-version: '17'
107107

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+
108117
- name: Build the Android OS app
109118
run: cd example/android && ./gradlew assembleDebug
110119

@@ -124,15 +133,6 @@ jobs:
124133
distribution: 'zulu'
125134
java-version: '17'
126135

127-
- name: Use new arch config
128-
id: cache-new-arch-gradle
129-
uses: actions/cache@v4
130-
env:
131-
cache-name: cached-gradle-new-arch-prop
132-
with:
133-
path: example/android/gradle.properties
134-
key: gradle-prop-new-arch-config
135-
136136
- name: Build the Android OS app
137137
run: cd example/android && ./gradlew assembleDebug
138138

example/android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
3434
# your application. You should enable this flag either if you want
3535
# to write custom TurboModules/Fabric components OR use libraries that
3636
# are providing them.
37-
newArchEnabled=true
37+
newArchEnabled=false
3838

3939
# Use this property to enable or disable the Hermes JS engine.
4040
# If set to false, you will be using JSC instead.

0 commit comments

Comments
 (0)