Skip to content

Commit

Permalink
HDDS-11877. Enable Maven cache for more checks (apache#7538)
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai authored Dec 8, 2024
1 parent 51c6ed6 commit af345b2
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit af345b2

Please sign in to comment.