File tree Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Original file line number Diff line number Diff line change 1717 api-level : 34
1818 display_size : 1080x2336 # subtracted the 64px bottom navigation bar
1919 type : phone
20- - profile : Pixel Tablet
20+ - profile : pixel_tablet
2121 api-level : 34
2222 display_size : 2560x1488 # subtracted the 64px navigation bar and 48px status bar
2323 type : tenInch
3838 mkdir ~/.config/.android
3939 echo $DEBUG_KEYSTORE_BASE64 | base64 --decode > ~/.config/.android/debug.keystore
4040
41+ - name : Set up Java environment
42+ uses : actions/setup-java@v3
43+ with :
44+ java-version : 17
45+ distribution : ' zulu'
46+ cache : ' gradle'
47+
48+ - name : Setup Android SDK
49+ run : |
50+ $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "cmdline-tools;latest"
51+ rm -r $ANDROID_HOME/cmdline-tools/latest
52+ mv $ANDROID_HOME/cmdline-tools/latest-2 $ANDROID_HOME/cmdline-tools/latest
53+ $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --version
54+ $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install emulator 'system-images;android-34;google_atd;x86_64'
55+ $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd --force -n test --abi 'google_atd/x86_64' --package 'system-images;android-34;google_atd;x86_64' --device 'pixel_tablet'
56+ $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager list avd
57+
4158 - name : AVD cache
4259 uses : actions/cache@v3
4360 id : avd-cache
6279 disable-animations : true
6380 script : echo "Generated AVD snapshot for caching."
6481
65- - name : Set up Java environment
66- uses : actions/setup-java@v3
67- with :
68- java-version : 17
69- distribution : ' zulu'
70- cache : ' gradle'
71-
7282 - name : Build app
7383 run : ./gradlew assembleGoogleNormalDebug assembleGoogleNormalAndroidTest
7484 env :
You can’t perform that action at this time.
0 commit comments