Skip to content

Commit c6adbb1

Browse files
Enable Gradle cache in build.yml and windows-build.yml workflows using gradle/actions/setup-gradle (#702)
* Initial plan * Enable Gradle cache in GitHub Actions workflows Co-authored-by: yutaro-sakamoto <[email protected]> * Remove accidental test files that were not part of the caching changes Co-authored-by: yutaro-sakamoto <[email protected]> * Add Gradle cache to create-release.yml workflow The create-release.yml workflow also uses Gradle for publishing packages but was missing the gradle-build-action caching configuration. This adds the proper setup step with gradle-version: wrapper to enable caching for the publish job as well. Co-authored-by: yutaro-sakamoto <[email protected]> * Replace deprecated gradle/gradle-build-action with gradle/actions/setup-gradle Co-authored-by: yutaro-sakamoto <[email protected]> * Limit Gradle cache to windows-build.yml only as requested Co-authored-by: yutaro-sakamoto <[email protected]> * Enable Gradle cache in build.yml workflow for make command optimization Co-authored-by: yutaro-sakamoto <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: yutaro-sakamoto <[email protected]>
1 parent 06316ae commit c6adbb1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ jobs:
5353
- name: Checkout opensource COBOL 4J
5454
uses: actions/checkout@v5
5555

56+
- name: Setup Gradle
57+
uses: gradle/actions/setup-gradle@v3
58+
with:
59+
gradle-version: wrapper
60+
5661
- name: Install opensource COBOL 4J
5762
if: inputs.configure-args == ''
5863
run: |

.github/workflows/windows-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
- name: Restore NuGet packages
3030
run: nuget restore ./win/
3131

32+
- name: Setup Gradle
33+
uses: gradle/actions/setup-gradle@v3
34+
with:
35+
gradle-version: wrapper
36+
3237
- name: Install opensource COBOL 4J
3338
working-directory: libcobj
3439
run: ./gradlew shadowJar

0 commit comments

Comments
 (0)