Skip to content

Commit

Permalink
update SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
johan12345 committed May 12, 2024
1 parent b9c08a8 commit 21c31b7
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
api-level: 34
display_size: 1080x2336 # subtracted the 64px bottom navigation bar
type: phone
- profile: Pixel Tablet
- profile: pixel_tablet
api-level: 34
display_size: 2560x1488 # subtracted the 64px navigation bar and 48px status bar
type: tenInch
Expand All @@ -38,6 +38,20 @@ jobs:
mkdir ~/.config/.android
echo $DEBUG_KEYSTORE_BASE64 | base64 --decode > ~/.config/.android/debug.keystore
- name: Set up Java environment
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'zulu'
cache: 'gradle'

- name: Setup Android SDK
run: |
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "cmdline-tools;12.0"
rm -r $ANDROID_HOME/cmdline-tools/latest
ln -s $ANDROID_HOME/cmdline-tools/12.0 $ANDROID_HOME/cmdline-tools/latest
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --version
- name: AVD cache
uses: actions/cache@v3
id: avd-cache
Expand All @@ -62,13 +76,6 @@ jobs:
disable-animations: true
script: echo "Generated AVD snapshot for caching."

- name: Set up Java environment
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'zulu'
cache: 'gradle'

- name: Build app
run: ./gradlew assembleGoogleNormalDebug assembleGoogleNormalAndroidTest
env:
Expand Down

0 comments on commit 21c31b7

Please sign in to comment.