From af345b23df535cb1f1bca550fa8c9f52dac44aea Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" <6454655+adoroszlai@users.noreply.github.com> Date: Sun, 8 Dec 2024 15:26:42 +0100 Subject: [PATCH] HDDS-11877. Enable Maven cache for more checks (#7538) --- .github/workflows/ci.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8854aa6971..8e5fa28eac3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -257,7 +257,7 @@ jobs: key: maven-repo-${{ hashFiles('**/pom.xml') }} restore-keys: | maven-repo- - if: ${{ !contains('author,bats,docs', matrix.check) }} + if: ${{ !contains('author,bats', matrix.check) }} - name: Download Ratis repo if: ${{ inputs.ratis_args != '' }} uses: actions/download-artifact@v4 @@ -343,6 +343,15 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ needs.build-info.outputs.sha }} + - name: Cache for maven dependencies + uses: actions/cache/restore@v4 + with: + path: | + ~/.m2/repository/*/*/* + !~/.m2/repository/org/apache/ozone + key: maven-repo-${{ hashFiles('**/pom.xml') }} + restore-keys: | + maven-repo- - name: Download compiled Ozone binaries uses: actions/download-artifact@v4 with: @@ -486,6 +495,15 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ needs.build-info.outputs.sha }} + - name: Cache for maven dependencies + uses: actions/cache/restore@v4 + with: + path: | + ~/.m2/repository/*/*/* + !~/.m2/repository/org/apache/ozone + key: maven-repo-${{ hashFiles('**/pom.xml') }} + restore-keys: | + maven-repo- - name: Download compiled Ozone binaries uses: actions/download-artifact@v4 with: @@ -530,6 +548,15 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ needs.build-info.outputs.sha }} + - name: Cache for maven dependencies + uses: actions/cache/restore@v4 + with: + path: | + ~/.m2/repository/*/*/* + !~/.m2/repository/org/apache/ozone + key: maven-repo-${{ hashFiles('**/pom.xml') }} + restore-keys: | + maven-repo- - name: Download compiled Ozone binaries uses: actions/download-artifact@v4 with: