Skip to content

Commit 8a60886

Browse files
committed
update SDK
1 parent b9c08a8 commit 8a60886

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.github/workflows/screenshots.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ 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
@@ -38,6 +38,23 @@ jobs:
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
@@ -62,13 +79,6 @@ jobs:
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:

0 commit comments

Comments
 (0)