Skip to content

Commit 5582fbd

Browse files
Remove redundant Gradle user home creation and caching steps from build workflow
1 parent e0336e2 commit 5582fbd

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,6 @@ jobs:
3131
name: Checkout build logic
3232
run: |
3333
git submodule update --init --depth 1 -- build-logic/common
34-
- &create-gradle-user-home
35-
name: Create Gradle User Home
36-
shell: bash
37-
run: |
38-
export GRADLE_USER_HOME=${GITHUB_WORKSPACE}/.gradle
39-
mkdir -p ${GRADLE_USER_HOME}
40-
echo "GRADLE_USER_HOME=${GRADLE_USER_HOME}" >> $GITHUB_ENV
41-
export TODAY=$(date '+%Y-%m-%d')
42-
echo "TODAY=${TODAY}" >> $GITHUB_ENV
43-
find . -name '*.gradle.kts' -type f -exec md5sum {} \; | sort && md5sum gradle/libs.versions.toml && md5sum gradle/wrapper/gradle-wrapper.properties && md5sum gradle.properties > gradle-md5-sums.txt
44-
export GRADLE_CACHE_KEY=$(md5sum gradle-md5-sums.txt | awk '{ print $1 }')
45-
echo "GRADLE_CACHE_KEY=${GRADLE_CACHE_KEY}" >> $GITHUB_ENV
46-
rm gradle-md5-sums.txt
47-
- &cache-gradle-dependencies
48-
name: Cache Gradle Dependencies
49-
uses: SonarSource/ci-github-actions/cache@v1
50-
with:
51-
path: ${{ env.GRADLE_USER_HOME }}
52-
key: gradle-${{ env.GRADLE_CACHE_KEY }}
5334
- uses: SonarSource/ci-github-actions/build-gradle@v1
5435
with:
5536
deploy-pull-request: true
@@ -70,8 +51,6 @@ jobs:
7051
- *checkout-simple
7152
- *mise-install
7253
- *checkout-build-logic
73-
- *create-gradle-user-home
74-
- *cache-gradle-dependencies
7554
- uses: SonarSource/ci-github-actions/build-gradle@v1
7655
with:
7756
deploy-pull-request: false
@@ -107,8 +86,6 @@ jobs:
10786
- *checkout-simple
10887
- *mise-install
10988
- *checkout-build-logic
110-
- *create-gradle-user-home
111-
- *cache-gradle-dependencies
11289
- uses: SonarSource/ci-github-actions/build-gradle@v1
11390
with:
11491
deploy-pull-request: false
@@ -145,8 +122,6 @@ jobs:
145122
with:
146123
submodules: true
147124
- *mise-install
148-
- *create-gradle-user-home
149-
- *cache-gradle-dependencies
150125
- &setup-orchestator-home
151126
name: Setup Orchestrator Home
152127
run: |
@@ -208,8 +183,6 @@ jobs:
208183
steps:
209184
- *checkout-submodules
210185
- *mise-install
211-
- *create-gradle-user-home
212-
- *cache-gradle-dependencies
213186
- *setup-orchestator-home
214187
- *cache-orchestrator
215188
- *orchestrator-secrets
@@ -255,8 +228,6 @@ jobs:
255228
steps:
256229
- *checkout-submodules
257230
- *mise-install
258-
- *create-gradle-user-home
259-
- *cache-gradle-dependencies
260231
- *setup-orchestator-home
261232
- *cache-orchestrator
262233
- *orchestrator-secrets

0 commit comments

Comments
 (0)