File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,10 +17,12 @@ jobs:
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
24+ env :
25+ ANDROID_USER_HOME : /home/runner/.android
2426 steps :
2527 - name : Enable KVM group perms
2628 run : |
3840 mkdir ~/.config/.android
3941 echo $DEBUG_KEYSTORE_BASE64 | base64 --decode > ~/.config/.android/debug.keystore
4042
43+ - name : Set up Java environment
44+ uses : actions/setup-java@v3
45+ with :
46+ java-version : 17
47+ distribution : ' zulu'
48+ cache : ' gradle'
49+
50+ - name : Setup Android SDK
51+ run : |
52+ $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "cmdline-tools;latest"
53+ rm -r $ANDROID_HOME/cmdline-tools/latest
54+ mv $ANDROID_HOME/cmdline-tools/latest-2 $ANDROID_HOME/cmdline-tools/latest
55+ $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --version
56+ $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install emulator 'system-images;android-34;google_atd;x86_64'
57+ $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'
58+ $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager list avd
59+
4160 - name : AVD cache
4261 uses : actions/cache@v3
4362 id : avd-cache
6281 disable-animations : true
6382 script : echo "Generated AVD snapshot for caching."
6483
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-
7284 - name : Build app
7385 run : ./gradlew assembleGoogleNormalDebug assembleGoogleNormalAndroidTest
7486 env :
You can’t perform that action at this time.
0 commit comments