@@ -83,10 +83,18 @@ jobs:
8383 create-new-comment : false
8484
8585 test-android :
86- name : Run Android Tests
86+ name : Run Android Tests (${{ matrix.arch }})
8787 runs-on : ubuntu-latest
8888 timeout-minutes : 20
8989 needs : [lint, test]
90+ strategy :
91+ fail-fast : false
92+ matrix :
93+ include :
94+ - arch : Legacy Arch
95+ new_arch_enabled : ' false'
96+ - arch : New Arch
97+ new_arch_enabled : ' true'
9098 steps :
9199 - name : Checkout
92100 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -101,11 +109,12 @@ jobs:
101109 distribution : ' zulu'
102110 java-version : ${{ env.JAVA_VERSION }}
103111
104- - name : Run Android tests
112+ - name : Run Android tests (${{ matrix.arch }})
105113 timeout-minutes : 20
106114 env :
107115 GRADLE_OPTS : -Xmx4g -XX:MaxMetaspaceSize=768m
108116 JAVA_HOME : ${{ steps.setup-java.outputs.path }}
117+ ORG_GRADLE_PROJECT_newArchEnabled : ${{ matrix.new_arch_enabled }}
109118 run : |
110119 echo "JAVA_HOME: $JAVA_HOME"
111120 java -version
@@ -115,10 +124,18 @@ jobs:
115124 yarn sample test:android --no-daemon
116125
117126 test-ios :
118- name : Run Swift Tests
127+ name : Run Swift Tests (${{ matrix.arch }})
119128 runs-on : macos-15-xlarge
120129 timeout-minutes : 20
121130 needs : [lint, test]
131+ strategy :
132+ fail-fast : false
133+ matrix :
134+ include :
135+ - arch : legacy
136+ new_arch_enabled : ' false'
137+ - arch : new-arch
138+ new_arch_enabled : ' true'
122139 steps :
123140 - name : Checkout
124141 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -139,7 +156,11 @@ jobs:
139156
140157 - name : Install cocoapods
141158 uses : ./.github/actions/install-cocoapods
159+ env :
160+ RCT_NEW_ARCH_ENABLED : ${{ matrix.new_arch_enabled }}
142161
143- - name : Run Swift tests
162+ - name : Run Swift tests (${{ matrix.arch }})
163+ env :
164+ RCT_NEW_ARCH_ENABLED : ${{ matrix.new_arch_enabled }}
144165 run : |
145166 yarn sample test:ios
0 commit comments