Skip to content

Commit 52e2f25

Browse files
committed
Change android arch and create iOS simulator
1 parent 0865916 commit 52e2f25

File tree

1 file changed

+35
-3
lines changed

1 file changed

+35
-3
lines changed

.github/workflows/NativePipeline.yml

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,40 @@ jobs:
309309
java-version: 17
310310
distribution: temurin
311311
cache: gradle
312+
312313
- name: "Check Java Version"
313314
run: java -version
315+
- name: "Check JAVA_HOME"
316+
run: echo $JAVA_HOME
317+
318+
- name: "Install Android SDK Command-Line Tools"
319+
run: |
320+
mkdir -p $HOME/android-sdk/cmdline-tools
321+
cd $HOME/android-sdk/cmdline-tools
322+
curl -O https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip
323+
unzip commandlinetools-linux-7583922_latest.zip
324+
rm commandlinetools-linux-7583922_latest.zip
325+
mv cmdline-tools latest
326+
327+
- name: "Set up Android SDK environment variables"
328+
run: |
329+
echo "ANDROID_HOME=$HOME/android-sdk" >> $GITHUB_ENV
330+
echo "$HOME/android-sdk/cmdline-tools/latest/bin" >> $GITHUB_PATH
331+
332+
- name: "Accept Android SDK licenses"
333+
run: |
334+
yes | sdkmanager --licenses
335+
336+
- name: "Install Android SDK components"
337+
run: |
338+
sdkmanager "platform-tools" "platforms;android-34"
339+
340+
- name: "Check Android SDK Tools Version"
341+
run: sdkmanager --version
342+
343+
- name: "List Installed SDK Packages"
344+
run: sdkmanager --list
345+
314346
- name: "Build Android app"
315347
working-directory: native-template/android
316348
run: ./gradlew assembleAppstoreDebug assembleAppstoreDebugAndroidTest
@@ -449,7 +481,7 @@ jobs:
449481
with:
450482
api-level: 34
451483
target: default
452-
arch: x86_64
484+
arch: arm64-v8a
453485
profile: pixel
454486
cores: 3
455487
ram-size: 4096M
@@ -547,8 +579,8 @@ jobs:
547579
run: xcrun simctl list runtimes
548580
- name: Check avialble device types
549581
run: xcrun simctl list devicetypes
550-
# - name: Create iOS 16.0 simulator for iPhone 14
551-
# run: xcrun simctl create "iPhone 14" com.apple.CoreSimulator.SimDeviceType.iPhone-14 com.apple.CoreSimulator.SimRuntime.iOS-16-0
582+
- name: Create iOS 17.5 simulator for iPhone 14
583+
run: xcrun simctl create "iPhone 14" com.apple.CoreSimulator.SimDeviceType.iPhone-14 com.apple.CoreSimulator.SimRuntime.iOS-17-5
552584
- name: List supported iOS devices
553585
run: applesimutils --list
554586
- name: "Run tests"

0 commit comments

Comments
 (0)