feat: add JDK caching to workflow for improved build performance
Some checks failed
Gitea Actions Demo / Build-Gradle (push) Failing after 5m47s
Some checks failed
Gitea Actions Demo / Build-Gradle (push) Failing after 5m47s
This commit is contained in:
@@ -10,12 +10,19 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Cache JDK
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.sdkman/candidates/java
|
||||
key: jdk-${{ runner.os }}-oracle-21
|
||||
restore-keys: jdk-${{ runner.os }}-
|
||||
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'oracle'
|
||||
java-version: '21'
|
||||
cache: 'gradle'
|
||||
|
||||
#- name: Install Gradle
|
||||
# run: |
|
||||
|
||||
Reference in New Issue
Block a user