Skip to content

Commit 5cb7c44

Browse files
RBusarowkodiakhq[bot]
authored andcommitted
remove github actions caching
It doesn't help the absurdly slow Windows tests, the Ubuntu tests don't need help, and it frequently causes CI runs to fail due to rate limiting.
1 parent 08d7da5 commit 5cb7c44

File tree

3 files changed

+18
-49
lines changed

3 files changed

+18
-49
lines changed
2.87 KB
Binary file not shown.

.github/workflows/ci.yml

+17-41
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,7 @@ jobs:
4949
- uses: gradle/wrapper-validation-action@v1
5050

5151
- name: build website
52-
uses: burrunan/gradle-cache-action@v1
53-
with:
54-
gradle-dependencies-cache-key: |
55-
gradle/libs.versions.toml
56-
arguments: |
57-
buildSite
58-
concurrent: true
59-
gradle-build-scan-report: false
52+
run: ./gradlew buildSite --no-daemon
6053

6154
artifacts-check:
6255

@@ -136,10 +129,10 @@ jobs:
136129
fetch-depth: 0
137130

138131
- name: Set up JDK
139-
uses : actions/setup-java@v2
140-
with :
141-
distribution : 'adopt'
142-
java-version : '11'
132+
uses: actions/setup-java@v2
133+
with:
134+
distribution: 'adopt'
135+
java-version: '11'
143136
cache: 'gradle'
144137

145138
- name: KtLint format (used by main repo)
@@ -176,15 +169,15 @@ jobs:
176169
fetch-depth: 0
177170

178171
- name: Set up JDK
179-
uses : actions/setup-java@v2
180-
with :
181-
distribution : 'adopt'
182-
java-version : '11'
172+
uses: actions/setup-java@v2
173+
with:
174+
distribution: 'adopt'
175+
java-version: '11'
183176
cache: 'gradle'
184177

185178
- name: ModuleCheck with auto-correct (used by main repo)
186179
if: github.event.pull_request.head.repo.full_name == github.repository
187-
run: ./gradlew moduleCheckAuto
180+
run: ./gradlew moduleCheckAuto --no-daemon
188181

189182
# If KtLint generated changes, commit and push those changes.
190183
- name: commit changes (used by main repo)
@@ -196,7 +189,7 @@ jobs:
196189

197190
- name: ModuleCheck check (used by forks)
198191
if: github.event.pull_request.head.repo.full_name != github.repository
199-
run: ./gradlew moduleCheck
192+
run: ./gradlew moduleCheck --no-daemon
200193

201194
versioning:
202195

@@ -302,18 +295,7 @@ jobs:
302295
cache: 'gradle'
303296

304297
- name: all tests
305-
uses: burrunan/gradle-cache-action@v1
306-
with:
307-
gradle-dependencies-cache-key: |
308-
gradle/libs.versions.toml
309-
arguments: |
310-
testJvm
311-
properties: |
312-
modulecheck.kotlinVersion=${{ matrix.kotlin-version }}
313-
modulecheck.gradleVersion=${{ matrix.gradle-version }}
314-
modulecheck.agpVersion=${{ matrix.agp-version }}
315-
concurrent: true
316-
gradle-build-scan-report: false
298+
run: ./gradlew testJvm -Pmodulecheck.kotlinVersion=${{ matrix.kotlin-version }} -Pmodulecheck.gradleVersion=${{ matrix.gradle-version }} -Pmodulecheck.agpVersion=${{ matrix.agp-version }} --no-daemon
317299

318300
- name: Archive test results
319301
uses: actions/upload-artifact@v2
@@ -349,20 +331,14 @@ jobs:
349331
fetch-depth: 0
350332

351333
- name: Set up JDK
352-
uses : actions/setup-java@v2
353-
with :
354-
distribution : 'adopt'
355-
java-version : '11'
334+
uses: actions/setup-java@v2
335+
with:
336+
distribution: 'adopt'
337+
java-version: '11'
356338
cache: 'gradle'
357339

358340
- name: all tests
359-
uses: burrunan/gradle-cache-action@v1
360-
with:
361-
gradle-dependencies-cache-key: |
362-
gradle/libs.versions.toml
363-
arguments: testJvm
364-
concurrent: true
365-
gradle-build-scan-report: false
341+
run: ./gradlew testJvm --no-daemon
366342

367343
- name: Archive test results
368344
uses: actions/upload-artifact@v2

.github/workflows/website.yml

+1-8
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,7 @@ jobs:
4040
- uses: gradle/wrapper-validation-action@v1
4141

4242
- name: build website
43-
uses: burrunan/gradle-cache-action@v1
44-
with:
45-
gradle-dependencies-cache-key: |
46-
gradle/libs.versions.toml
47-
arguments: |
48-
buildSite
49-
concurrent: true
50-
gradle-build-scan-report: false
43+
run: ./gradlew buildSite --no-daemon
5144

5245
- name: Deploy to GitHub Pages
5346
if: success()

0 commit comments

Comments
 (0)