-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: Fix mvn cache for containerized runners #48
Conversation
1aabed5
to
6b13f67
Compare
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
path: | | ||
~/.m2/repository | ||
/root/.m2/repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for container users, which is root.
restore-keys: | | ||
${{ runner.os }}-maven- | ||
${{ runner.os }}-java-maven- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added java
and rust
to distinguish each other so that they don't interfere
|
||
- name: Run Maven compile | ||
shell: bash | ||
run: | | ||
./mvnw compile test-compile scalafix:scalafix -Psemanticdb | ||
./mvnw -B compile test-compile scalafix:scalafix -Psemanticdb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-B
: batch mode. Suppresses download progress bar.
cc @sunchao |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Merged, thanks |
Which issue does this PR close?
Closes #33 .
Rationale for this change
Fix maven cache issues
What changes are included in this PR?
Modify github action files
How are these changes tested?
Verified in the CI runs.
Others CI runs are also cached: https://github.com/apache/arrow-datafusion-comet/actions/runs/7973418479/job/21767221655?pr=48