File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed
Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change 4848 setup-environment :
4949 runs-on : ubuntu-latest
5050 outputs :
51- cache-key : ${{ steps.cache-build.outputs.cache-hit }}
51+ cache-key : ${{ steps.cache-build.outputs.cache-key }}
5252 steps :
5353 - name : " Checkout repository"
5454 uses : actions/checkout@v4
@@ -60,18 +60,21 @@ jobs:
6060 java-version : ${{ env.JAVA_VERSION }}
6161 cache : ' maven'
6262
63- - name : " Build SDK"
64- run : |
65- MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting"
66- mvn $MVN_ARGS
67-
6863 - name : " Cache build"
6964 id : cache-build
7065 uses : actions/cache@v3
7166 with :
72- path : ~/.m2/repository
67+ path : |
68+ ~/.m2/repository
69+ target
7370 key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
74- restore-keys : ${{ runner.os }}-maven-
71+ restore-keys : |
72+ ${{ runner.os }}-maven-
73+
74+ - name : " Build SDK"
75+ run : |
76+ MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting"
77+ mvn $MVN_ARGS
7578
7679 test-dependency-versions :
7780 needs : [ fetch-dependency-versions, setup-environment ]
8891 - name : " Restore build cache"
8992 uses : actions/cache@v3
9093 with :
91- path : ~/.m2/repository
92- key : ${{ needs.setup-environment.outputs.cache-key }}
94+ path : |
95+ ~/.m2/repository
96+ target
97+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
9398
9499 - name : " Run tests with explicit version"
95100 run : |
You can’t perform that action at this time.
0 commit comments