Skip to content

Commit 887d94f

Browse files
committed
update SDK
1 parent 8d7acbd commit 887d94f

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/screenshots.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,19 @@ jobs:
4747
~/.android/adb*
4848
key: ${{ runner.os }}-avd-api${{ matrix.device.api-level }}-${{ matrix.device.profile }}
4949

50+
- name: Set up Java environment
51+
uses: actions/setup-java@v3
52+
with:
53+
java-version: 17
54+
distribution: 'zulu'
55+
cache: 'gradle'
56+
57+
- name: Setup Android SDK
58+
uses: android-actions/setup-android@v3
59+
60+
- name: Update SDK
61+
run: sdkmanager --update
62+
5063
- name: create AVD and generate snapshot for caching
5164
if: steps.avd-cache.outputs.cache-hit != 'true'
5265
uses: reactivecircus/android-emulator-runner@v2
@@ -62,13 +75,6 @@ jobs:
6275
disable-animations: true
6376
script: echo "Generated AVD snapshot for caching."
6477

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-
7278
- name: Build app
7379
run: ./gradlew assembleGoogleNormalDebug assembleGoogleNormalAndroidTest
7480
env:

0 commit comments

Comments
 (0)