Skip to content

Commit

Permalink
feat(ci): add distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbuon committed Jul 27, 2024
1 parent dc6389a commit af8e058
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ jobs:
unzip commandlinetools.zip -d ${ANDROID_SDK_ROOT}
rm commandlinetools.zip
# Set up Java 8 (needed for sdkmanager)
- name: Set up Java 8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt-openjdk'

- name: Set up Android SDK and install platform-tools
run: |
Expand All @@ -42,6 +44,7 @@ jobs:
uses: actions/setup-java@v2
with:
java-version: 7
distribution: 'adopt-openjdk'

- name: Capture JDK7_HOME
run: echo "export JDK7_HOME=\"$JAVA_HOME\"" > ~/.jdk7_home
Expand All @@ -50,6 +53,7 @@ jobs:
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'adopt-openjdk'

- name: Capture JDK17_HOME
run: echo "export JDK17_HOME=\"$JAVA_HOME\"" > ~/.jdk17_home
Expand All @@ -59,6 +63,7 @@ jobs:
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'adopt-openjdk'

- name: Cache Gradle packages
uses: actions/cache@v2
Expand Down Expand Up @@ -105,6 +110,7 @@ jobs:
uses: actions/setup-java@v2
with:
java-version: 7
distribution: 'adopt-openjdk'

- name: Capture JDK7_HOME
run: echo "export JDK7_HOME=\"$JAVA_HOME\"" > ~/.jdk7_home
Expand All @@ -113,6 +119,7 @@ jobs:
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt-openjdk'

- name: Cache Gradle packages
uses: actions/cache@v2
Expand Down

0 comments on commit af8e058

Please sign in to comment.