try to implement build cache
This commit is contained in:
@@ -21,12 +21,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'graalvm'
|
distribution: 'graalvm'
|
||||||
java-version: ${{ env.JAVA_VERSION }}
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
|
cache-jdk: true
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@v6
|
uses: gradle/actions/setup-gradle@v6
|
||||||
with:
|
with:
|
||||||
gradle-version: ${{ env.GRADLE_VERSION }}
|
gradle-version: ${{ env.GRADLE_VERSION }}
|
||||||
# Only the main branch writes to the cache; PRs/feature branches read-only
|
# Only the main branch writes to the cache; PRs/feature branches read-only
|
||||||
cache-read-only: true
|
cache-read-only: false
|
||||||
- name: Run Gradle build
|
- name: Run Gradle build
|
||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
- name: Prepare Docker image build
|
- name: Prepare Docker image build
|
||||||
|
|||||||
Reference in New Issue
Block a user