@@ -83,10 +83,18 @@ jobs:
83
83
create-new-comment : false
84
84
85
85
test-android :
86
- name : Run Android Tests
86
+ name : Run Android Tests (${{ matrix.arch }})
87
87
runs-on : ubuntu-latest
88
88
timeout-minutes : 20
89
89
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'
90
98
steps :
91
99
- name : Checkout
92
100
uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -101,11 +109,12 @@ jobs:
101
109
distribution : ' zulu'
102
110
java-version : ${{ env.JAVA_VERSION }}
103
111
104
- - name : Run Android tests
112
+ - name : Run Android tests (${{ matrix.arch }})
105
113
timeout-minutes : 20
106
114
env :
107
115
GRADLE_OPTS : -Xmx4g -XX:MaxMetaspaceSize=768m
108
116
JAVA_HOME : ${{ steps.setup-java.outputs.path }}
117
+ ORG_GRADLE_PROJECT_newArchEnabled : ${{ matrix.new_arch_enabled }}
109
118
run : |
110
119
echo "JAVA_HOME: $JAVA_HOME"
111
120
java -version
@@ -115,10 +124,18 @@ jobs:
115
124
yarn sample test:android --no-daemon
116
125
117
126
test-ios :
118
- name : Run Swift Tests
127
+ name : Run Swift Tests (${{ matrix.arch }})
119
128
runs-on : macos-15-xlarge
120
129
timeout-minutes : 20
121
130
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'
122
139
steps :
123
140
- name : Checkout
124
141
uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -139,7 +156,11 @@ jobs:
139
156
140
157
- name : Install cocoapods
141
158
uses : ./.github/actions/install-cocoapods
159
+ env :
160
+ RCT_NEW_ARCH_ENABLED : ${{ matrix.new_arch_enabled }}
142
161
143
- - name : Run Swift tests
162
+ - name : Run Swift tests (${{ matrix.arch }})
163
+ env :
164
+ RCT_NEW_ARCH_ENABLED : ${{ matrix.new_arch_enabled }}
144
165
run : |
145
166
yarn sample test:ios
0 commit comments