Skip to content

Commit 35f9926

Browse files
author
minh.tran
committed
reenable cache
1 parent a3a9d49 commit 35f9926

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,18 @@ jobs:
5050
uses: actions/[email protected]
5151

5252
# Cache Gradle dependencies
53-
# - name: Setup Gradle Dependencies Cache
54-
# uses: actions/[email protected]
55-
# with:
56-
# path: ~/.gradle/caches
57-
# key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
53+
- name: Setup Gradle Dependencies Cache
54+
uses: actions/[email protected]
55+
with:
56+
path: ~/.gradle/caches
57+
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
5858

5959
# Cache Gradle Wrapper
60-
# - name: Setup Gradle Wrapper Cache
61-
# uses: actions/[email protected]
62-
# with:
63-
# path: ~/.gradle/wrapper
64-
# key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
60+
- name: Setup Gradle Wrapper Cache
61+
uses: actions/[email protected]
62+
with:
63+
path: ~/.gradle/wrapper
64+
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
6565

6666
# Run detekt, ktlint and tests
6767
- name: Run Linters and Test
@@ -96,18 +96,18 @@ jobs:
9696
uses: actions/checkout@v2
9797

9898
# Cache Gradle Dependencies
99-
# - name: Setup Gradle Dependencies Cache
100-
# uses: actions/[email protected]
101-
# with:
102-
# path: ~/.gradle/caches
103-
# key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
99+
- name: Setup Gradle Dependencies Cache
100+
uses: actions/[email protected]
101+
with:
102+
path: ~/.gradle/caches
103+
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
104104

105105
# Cache Gradle Wrapper
106-
# - name: Setup Gradle Wrapper Cache
107-
# uses: actions/[email protected]
108-
# with:
109-
# path: ~/.gradle/wrapper
110-
# key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
106+
- name: Setup Gradle Wrapper Cache
107+
uses: actions/[email protected]
108+
with:
109+
path: ~/.gradle/wrapper
110+
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
111111

112112
# Set environment variables
113113
- name: Export Properties
@@ -159,18 +159,18 @@ jobs:
159159
uses: actions/[email protected]
160160

161161
# Cache Gradle Dependencies
162-
# - name: Setup Gradle Dependencies Cache
163-
# uses: actions/[email protected]
164-
# with:
165-
# path: ~/.gradle/caches
166-
# key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
162+
- name: Setup Gradle Dependencies Cache
163+
uses: actions/[email protected]
164+
with:
165+
path: ~/.gradle/caches
166+
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
167167

168168
# Cache Gradle Wrapper
169-
# - name: Setup Gradle Wrapper Cache
170-
# uses: actions/[email protected]
171-
# with:
172-
# path: ~/.gradle/wrapper
173-
# key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
169+
- name: Setup Gradle Wrapper Cache
170+
uses: actions/[email protected]
171+
with:
172+
path: ~/.gradle/wrapper
173+
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
174174

175175
# Set environment variables
176176
- name: Export Properties
@@ -184,11 +184,11 @@ jobs:
184184
echo "::set-output name=pluginVerifierHomeDir::~/.pluginVerifier"
185185
186186
# Cache Plugin Verifier IDEs
187-
# - name: Setup Plugin Verifier IDEs Cache
188-
# uses: actions/[email protected]
189-
# with:
190-
# path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides
191-
# key: ${{ runner.os }}-plugin-verifier-${{ steps.properties.outputs.ideVersions }}
187+
- name: Setup Plugin Verifier IDEs Cache
188+
uses: actions/[email protected]
189+
with:
190+
path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides
191+
key: ${{ runner.os }}-plugin-verifier-${{ steps.properties.outputs.ideVersions }}
192192

193193
# Run IntelliJ Plugin Verifier action using GitHub Action
194194
- name: Verify Plugin

0 commit comments

Comments
 (0)