Skip to content

Commit edf2e0f

Browse files
committed
Simplify CI: replace setup-gradle with manual cache + chmod
Remove dependency on gradle/actions/setup-gradle action which may have version/compatibility issues. Use actions/cache directly for Gradle caching and explicit chmod +x for the wrapper script. https://claude.ai/code/session_015LpmjAt17XD582hZ9TPLCv
1 parent fb08ac9 commit edf2e0f

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,17 @@ jobs:
2727
distribution: temurin
2828
java-version: 17
2929

30-
- name: Setup Gradle
31-
uses: gradle/actions/setup-gradle@v3
30+
- name: Cache Gradle
31+
uses: actions/cache@v4
32+
with:
33+
path: |
34+
~/.gradle/caches
35+
~/.gradle/wrapper
36+
key: gradle-${{ runner.os }}-${{ hashFiles('review-plugin/**/*.gradle*', 'review-plugin/gradle/wrapper/gradle-wrapper.properties') }}
37+
restore-keys: gradle-${{ runner.os }}-
38+
39+
- name: Grant execute permission for gradlew
40+
run: chmod +x gradlew
3241

3342
- name: Build plugin
3443
run: ./gradlew buildPlugin
@@ -62,8 +71,17 @@ jobs:
6271
distribution: temurin
6372
java-version: 17
6473

65-
- name: Setup Gradle
66-
uses: gradle/actions/setup-gradle@v3
74+
- name: Cache Gradle
75+
uses: actions/cache@v4
76+
with:
77+
path: |
78+
~/.gradle/caches
79+
~/.gradle/wrapper
80+
key: gradle-${{ runner.os }}-${{ hashFiles('review-plugin/**/*.gradle*', 'review-plugin/gradle/wrapper/gradle-wrapper.properties') }}
81+
restore-keys: gradle-${{ runner.os }}-
82+
83+
- name: Grant execute permission for gradlew
84+
run: chmod +x gradlew
6785

6886
- name: Verify plugin descriptor
6987
run: ./gradlew verifyPluginConfiguration

0 commit comments

Comments
 (0)