Skip to content

Commit

Permalink
feat(ci): just install old command line tool
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbuon committed Jul 28, 2024
1 parent 3131f34 commit bc5bfb7
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,45 +25,30 @@ 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: 'zulu'

- name: Set up Android SDK and install platform-tools
run: |
SDKMANAGER=${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager
echo "y" | ${SDKMANAGER} "platform-tools"
# Our build uses JDK7's rt.jar to make sure the artifact is fully
# compatible with Java 7, so we let this action set Java 7 up for us
# and we store its JAVA_HOME
- name: Set up Java 7
uses: actions/setup-java@v2
uses: actions/setup-java@v1
with:
java-version: 7
distribution: 'zulu'

- name: Capture JDK7_HOME
run: echo "export JDK7_HOME=\"$JAVA_HOME\"" > ~/.jdk7_home

- name: Set up Java 17 (needed for Spring Boot 3)
uses: actions/setup-java@v2
uses: actions/setup-java@v1
with:
java-version: 17
distribution: 'zulu'

- name: Capture JDK17_HOME
run: echo "export JDK17_HOME=\"$JAVA_HOME\"" > ~/.jdk17_home

# This is the JDK that'll run the build
- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@v2
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'

- name: Cache Gradle packages
uses: actions/cache@v2
Expand Down Expand Up @@ -107,19 +92,17 @@ jobs:
- uses: actions/checkout@v2

- name: Set up Java 7
uses: actions/setup-java@v2
uses: actions/setup-java@v1
with:
java-version: 7
distribution: 'zulu'

- name: Capture JDK7_HOME
run: echo "export JDK7_HOME=\"$JAVA_HOME\"" > ~/.jdk7_home

- name: Set up Java 8
uses: actions/setup-java@v2
uses: actions/setup-java@v1
with:
java-version: 8
distribution: 'zulu'

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

0 comments on commit bc5bfb7

Please sign in to comment.