Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Sep 21, 2023
1 parent ecea1e5 commit ed92724
Showing 1 changed file with 34 additions and 21 deletions.
55 changes: 34 additions & 21 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,46 @@ inputs:
java:
description: The Java version to use
required: false
default: | # https://github.com/actions/setup-java#install-multiple-jdks
11
distribution:
description: The distribution to use
default: 2021.07.07-tem
gradle:
description: The Gradle version to use
required: false
default: 'temurin'
default: 4.2
kotlin:
description: The Kotlin version to use
required: false
default: 1.6.21

runs:
using: composite

steps:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ inputs.java }}
distribution: ${{ inputs.distribution }}
cache: 'gradle'
# - name: Set up JDK
# uses: actions/setup-java@v3
# with:
# java-version: ${{ inputs.java }}
# distribution: ${{ inputs.distribution }}
# cache: 'gradle'

- run: |
curl -s "https://get.sdkman.io" | bash
sdk install java ${{ inputs.java }}
sdk default java ${{ inputs.java }}
sdk install gradle ${{ inputs.gradle }}
sdk default gradle ${{ inputs.gradle }}
sdk install kotlin ${{ inputs.kotlin }}
sdk default kotlin ${{ inputs.kotlin }}
shell: bash
- name: Setup Android SDK
uses: android-actions/setup-android@7c5672355aaa8fde5f97a91aa9a99616d1ace6bc # [email protected]
# - name: Setup Android SDK
# uses: android-actions/setup-android@7c5672355aaa8fde5f97a91aa9a99616d1ace6bc # [email protected]

- uses: gradle/gradle-build-action@ef76a971e2fa3f867b617efd72f2fbd72cf6f8bc # [email protected]
with:
gradle-version: 4.2
# - uses: gradle/gradle-build-action@ef76a971e2fa3f867b617efd72f2fbd72cf6f8bc # [email protected]
# with:
# gradle-version: 4.2

- name: Install Kotlin
uses: fwilhe2/setup-kotlin@main
with:
version: 1.6.21
install-native: true
# - name: Install Kotlin
# uses: fwilhe2/setup-kotlin@main
# with:
# version: 1.6.21
# install-native: true

0 comments on commit ed92724

Please sign in to comment.