Skip to content

Commit

Permalink
Include JDK version in cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
FloEdelmann committed Jan 5, 2025
1 parent 063b333 commit 7e390b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/android-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ jobs:
matrix:
include:
- api-level: 34
jdk-version: 21
arch: x86_64
steps:
- uses: actions/checkout@v4
- name: set up JDK 21
- name: set up JDK ${{ matrix.jdk-version }}
uses: actions/setup-java@v4
with:
java-version: '21'
jdk-version: ${{ matrix.jdk-version }}
distribution: 'temurin'
- uses: gradle/actions/setup-gradle@v3

Expand All @@ -31,7 +32,7 @@ jobs:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}
key: avd-${{ matrix.jdk-version }}-${{ matrix.api-level }}

- name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 7e390b8

Please sign in to comment.