16
16
fail-fast : false
17
17
matrix :
18
18
framework : [react-native]
19
- framework-version : [
20
- # uncomment to enable
19
+ framework-version :
20
+ [
21
21
{ formatted: latest, value: latest },
22
22
{ formatted: 078, value: 0.78 },
23
23
{ formatted: 077, value: 0.77 },
@@ -134,6 +134,7 @@ jobs:
134
134
restore-keys : pods-${{ hashFiles('examples/react-native/ios/Podfile.lock') }}
135
135
env :
136
136
SEGMENT_DOWNLOAD_TIMEOUT_MINS : 1
137
+
137
138
- name : Restore node_modules cache
138
139
if : ${{ matrix.platform == 'ios' }}
139
140
uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57
@@ -145,6 +146,7 @@ jobs:
145
146
key : ${{ runner.os }}-nodemodules
146
147
env :
147
148
SEGMENT_DOWNLOAD_TIMEOUT_MINS : 3
149
+
148
150
- name : Install Java 17
149
151
if : ${{ matrix.platform == 'android' }}
150
152
uses : actions/setup-java@de1bb2b0c5634f0fc4438d7aa9944e68f9bf86cc # 3.6.0
@@ -162,6 +164,7 @@ jobs:
162
164
echo "ruby --version"
163
165
ruby --version
164
166
continue-on-error : true # brew overwrite step addresses a python install issue: https://github.com/actions/runner-images/issues/8500
167
+
165
168
- name : Update CocoaPods
166
169
if : ${{ matrix.platform == 'ios' }}
167
170
run : |
@@ -173,16 +176,13 @@ jobs:
173
176
run : |
174
177
echo -e "echo \$ANDROID_HOME"
175
178
echo $ANDROID_HOME
176
- $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install 'build-tools;33.0.2' platform-tools
177
- echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "system-images;android-27;default;x86_64"
178
- echo "no" | $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd --force --name Pixel_5_API_27 --device "pixel_5" --abi x86_64 --package "system-images;android-27;default;x86_64"
179
- printf 'hw.cpu.ncore=2\n' >> ~/.android/avd/Pixel_5_API_27.avd/config.ini
180
- printf 'hw.ramSize=2048\n' >> ~/.android/avd/Pixel_5_API_27.avd/config.ini
181
- printf 'hw.heapSize=576\n' >> ~/.android/avd/Pixel_5_API_27.avd/config.ini
179
+ $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "build-tools;33.0.2" "platform-tools" "system-images;android-27;default;x86_64"
180
+ $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd --name Pixel_5_API_27 --force --device "pixel_5" --abi x86_64 --package "system-images;android-27;default;x86_64"
181
+
182
182
- name : Start Android emulator
183
183
if : ${{ matrix.platform == 'android' }}
184
184
run : |
185
- nohup $ANDROID_HOME/emulator/emulator -avd Pixel_5_API_27 -port ${{ env.EMULATOR_PORT }} -no-boot-anim -no-audio -no-snapshot-load -gpu host -accel on &
185
+ $ANDROID_HOME/emulator/emulator -avd Pixel_5_API_27 -port ${{ env.EMULATOR_PORT }} -no-boot-anim -no-audio -no-snapshot-load -gpu host -accel on &
186
186
$ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'
187
187
$ANDROID_HOME/platform-tools/adb devices
188
188
# disable spell checker
@@ -196,6 +196,7 @@ jobs:
196
196
run : npm run setup:${{matrix.framework}}:${{matrix.build-tool}} -- --name ${{ env.MEGA_APP_NAME }} --platform ${{matrix.platform}} --tag ${{inputs.dist-tag}} --framework-version ${{matrix.framework-version.value}} --build-tool-version ${{matrix.build-tool-version}}
197
197
shell : bash
198
198
working-directory : build-system-tests
199
+
199
200
- name : Detect Mega App Error in Log
200
201
run : npm run checkReactNativeLogs -- --log-file-name ${{ matrix.logfile }} --mega-app-name ${{ env.MEGA_APP_NAME }} --platform ${{ matrix.platform }}
201
202
shell : bash
0 commit comments