forked from auth0/Auth0.Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |