6666 matrix :
6767 java : [11, 17, 21, 25, 26]
6868 steps :
69- - name : Get current week within the year
70- id : date
71- if : ${{ needs.bulk-filter.outputs.runnable == 'true' }}
72- run : echo "::set-output name=week_of_year::$(date +'%W' --utc)"
7369 - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
7470 if : ${{ needs.bulk-filter.outputs.runnable == 'true' }}
7571 with :
7975 with :
8076 distribution : temurin
8177 java-version : ${{matrix.java}}
78+ cache : maven
8279 - run : java -version
8380 if : ${{ needs.bulk-filter.outputs.runnable == 'true' }}
84- - uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
85- id : mvn-cache
86- if : ${{ needs.bulk-filter.outputs.runnable == 'true' }}
87- with :
88- path : ~/.m2/repository
89- key : ${{ runner.os }}-maven-unified-${{ steps.date.outputs.week_of_year }}
9081 - run : .kokoro/build.sh
9182 if : ${{ needs.bulk-filter.outputs.runnable == 'true' && (needs.bulk-filter.outputs.src == 'true' || needs.bulk-filter.outputs.ci == 'true') }}
9283 env :
9788 needs : bulk-filter
9889 name : " units (8)"
9990 steps :
100- - name : Get current week within the year
101- id : date
102- if : ${{ needs.bulk-filter.outputs.runnable == 'true' }}
103- run : echo "::set-output name=week_of_year::$(date +'%W' --utc)"
10491 - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
10592 if : ${{ needs.bulk-filter.outputs.runnable == 'true' }}
10693 with :
@@ -122,12 +109,6 @@ jobs:
122109 java-version : 11
123110 distribution : temurin
124111 cache : maven
125- - uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
126- id : mvn-cache
127- if : ${{ needs.bulk-filter.outputs.runnable == 'true' }}
128- with :
129- path : ~/.m2/repository
130- key : ${{ runner.os }}-maven-unified-${{ steps.date.outputs.week_of_year }}
131112 - run : .kokoro/build.sh
132113 if : ${{ needs.bulk-filter.outputs.runnable == 'true' && (needs.bulk-filter.outputs.src == 'true' || needs.bulk-filter.outputs.ci == 'true') }}
133114 shell : bash
@@ -271,16 +252,14 @@ jobs:
271252 package : ${{ fromJSON(needs.changes.outputs.packages) }}
272253 java : [11, 17, 21, 25, 26]
273254 steps :
274- - name : Get current week within the year
275- id : date
276- run : echo "::set-output name=week_of_year::$(date +'%W' --utc)"
277255 - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
278256 with :
279257 persist-credentials : false
280258 - uses : actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
281259 with :
282260 distribution : temurin
283261 java-version : ${{matrix.java}}
262+ cache : maven
284263 - run : .kokoro/build.sh
285264 env :
286265 BUILD_SUBDIR : ${{matrix.package}}
@@ -296,9 +275,6 @@ jobs:
296275 package : ${{ fromJSON(needs.changes.outputs.packages) }}
297276 java : [8]
298277 steps :
299- - name : Get current week within the year
300- id : date
301- run : echo "::set-output name=week_of_year::$(date +'%W' --utc)"
302278 - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
303279 with :
304280 persist-credentials : false
@@ -308,11 +284,6 @@ jobs:
308284 distribution : temurin
309285 cache : maven
310286 - run : java -version
311- - uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
312- id : mvn-cache
313- with :
314- path : ~/.m2/repository
315- key : ${{ runner.os }}-maven-unified-${{ steps.date.outputs.week_of_year }}
316287 - name : Install all modules using Java 11
317288 shell : bash
318289 run : .kokoro/build.sh
@@ -353,6 +324,7 @@ jobs:
353324 with :
354325 distribution : temurin
355326 java-version : 11
327+ cache : maven
356328 - run : .kokoro/build.sh
357329 env :
358330 BUILD_SUBDIR : ${{matrix.package}}
@@ -372,6 +344,7 @@ jobs:
372344 with :
373345 distribution : temurin
374346 java-version : 17
347+ cache : maven
375348 - run : .kokoro/dependencies.sh
376349 env :
377350 BUILD_SUBDIR : ${{matrix.package}}
@@ -419,6 +392,7 @@ jobs:
419392 with :
420393 distribution : temurin
421394 java-version : 17
395+ cache : maven
422396 - run : java -version
423397 - run : .kokoro/build.sh
424398 env :
@@ -430,9 +404,6 @@ jobs:
430404 if : ${{ needs.bulk-filter.outputs.runnable == 'true' }}
431405 runs-on : ubuntu-latest
432406 steps :
433- - name : Get current week within the year
434- id : date
435- run : echo "::set-output name=week_of_year::$(date +'%W' --utc)"
436407 - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
437408 with :
438409 persist-credentials : false
0 commit comments