-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace actions/cache with new setup-java cache feature of GitHub Act…
…ions (#1800) Motivation: Github Actions announced a new "cache" feature for setup-java: https://github.blog/changelog/2021-08-30-github-actions-setup-java-now-supports-dependency-caching/ Modifications: - Replace actions/cache with new setup-java cache feature; Result: No custom `actions/cache` step, less yaml code for GitHub Actions configuration.
- Loading branch information
1 parent
40d4e5f
commit e37ff4c
Showing
4 changed files
with
4 additions
and
32 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 |
---|---|---|
|
@@ -18,18 +18,11 @@ jobs: | |
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'adopt' | ||
cache: 'gradle' | ||
- name: Print JDK Version | ||
run: java -version | ||
- name: Make gradlew Executable | ||
run: chmod +x gradlew | ||
- name: Cache Gradle Packages | ||
uses: actions/[email protected] | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: ${{ runner.os }}-gradle- | ||
# https://github.community/t/error-the-paging-file-is-too-small-for-this-operation-to-complete/17141 | ||
- name: Configure Windows Pagefile | ||
if: ${{ runner.os == 'Windows' }} | ||
|
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 |
---|---|---|
|
@@ -16,18 +16,11 @@ jobs: | |
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'adopt' | ||
cache: 'gradle' | ||
- name: Print JDK Version | ||
run: java -version | ||
- name: Make gradlew Executable | ||
run: chmod +x gradlew | ||
- name: Cache Gradle packages | ||
uses: actions/[email protected] | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: ${{ runner.os }}-gradle- | ||
- name: Build with Gradle | ||
env: | ||
CI: true | ||
|
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 |
---|---|---|
|
@@ -20,18 +20,11 @@ jobs: | |
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'adopt' | ||
cache: 'gradle' | ||
- name: Print JDK Version | ||
run: java -version | ||
- name: Make gradlew Executable | ||
run: chmod +x gradlew | ||
- name: Cache Gradle packages | ||
uses: actions/[email protected] | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: ${{ runner.os }}-gradle- | ||
- name: Build with Gradle | ||
env: | ||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }} | ||
|
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 |
---|---|---|
|
@@ -21,18 +21,11 @@ jobs: | |
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'adopt' | ||
cache: 'gradle' | ||
- name: Print JDK Version | ||
run: java -version | ||
- name: Make gradlew Executable | ||
run: chmod +x gradlew | ||
- name: Cache Gradle packages | ||
uses: actions/[email protected] | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: ${{ runner.os }}-gradle- | ||
- name: Build with Gradle | ||
env: | ||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }} | ||
|