Skip to content

Commit

Permalink
Fix bug: add timeout for cache deps steps [skip ci] (#11894)
Browse files Browse the repository at this point in the history
* add timeout for populate cache step

Signed-off-by: Yanxuan Liu <[email protected]>

* add continue to cache steps

Signed-off-by: Yanxuan Liu <[email protected]>

---------

Signed-off-by: Yanxuan Liu <[email protected]>
  • Loading branch information
YanxuanLiu authored Dec 19, 2024
1 parent f9c5ca6 commit 62b2396
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/mvn-verify-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,15 @@ jobs:
echo "dailyCacheKey=$cacheKey" | tee $GITHUB_ENV $GITHUB_OUTPUT
- name: Cache local Maven repository
id: cache
continue-on-error: true
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ env.dailyCacheKey }}
restore-keys: ${{ runner.os }}-maven-
- name: populate-daily-cache
timeout-minutes: 30
continue-on-error: true
if: steps.cache.outputs.cache-hit != 'true'
env:
SCALA_VER: '2.12'
Expand Down Expand Up @@ -118,6 +121,7 @@ jobs:
java-version: 8

- name: Cache local Maven repository
continue-on-error: true
uses: actions/cache@v4
with:
path: ~/.m2
Expand Down Expand Up @@ -171,12 +175,15 @@ jobs:
echo "scala213dailyCacheKey=$cacheKey" | tee $GITHUB_ENV $GITHUB_OUTPUT
- name: Cache local Maven repository
id: cache
continue-on-error: true
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ env.scala213dailyCacheKey }}
restore-keys: ${{ runner.os }}-maven-
- name: populate-daily-cache
timeout-minutes: 30
continue-on-error: true
if: steps.cache.outputs.cache-hit != 'true'
env:
SCALA_VER: '2.13'
Expand Down Expand Up @@ -223,6 +230,7 @@ jobs:
java-version: 17

- name: Cache local Maven repository
continue-on-error: true
uses: actions/cache@v4
with:
path: ~/.m2
Expand Down Expand Up @@ -278,6 +286,7 @@ jobs:
java-version: 17

- name: Cache local Maven repository
continue-on-error: true
uses: actions/cache@v4
with:
path: ~/.m2
Expand Down Expand Up @@ -332,6 +341,7 @@ jobs:
java-version: ${{ matrix.java-version }}

- name: Cache local Maven repository
continue-on-error: true
uses: actions/cache@v4
with:
path: ~/.m2
Expand Down Expand Up @@ -379,6 +389,7 @@ jobs:
java-version: 11

- name: Cache local Maven repository
continue-on-error: true
uses: actions/cache@v4
with:
path: ~/.m2
Expand Down

0 comments on commit 62b2396

Please sign in to comment.