Skip to content

Commit d638a88

Browse files
committed
update SDK
1 parent b9c08a8 commit d638a88

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/screenshots.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff 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: |
@@ -38,6 +40,20 @@ jobs:
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+
4157
- name: AVD cache
4258
uses: actions/cache@v3
4359
id: avd-cache
@@ -62,13 +78,6 @@ jobs:
6278
disable-animations: true
6379
script: echo "Generated AVD snapshot for caching."
6480

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-
7281
- name: Build app
7382
run: ./gradlew assembleGoogleNormalDebug assembleGoogleNormalAndroidTest
7483
env:

0 commit comments

Comments
 (0)