Skip to content
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

Merged
merged 4 commits into from
Feb 20, 2024

Conversation

advancedxy
Copy link
Contributor

@advancedxy advancedxy commented Feb 20, 2024

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.

  • Rust on Ubuntu:
image
  • Java on Ubuntu:
image
  • and Java on Mac:
image

Others CI runs are also cached: https://github.com/apache/arrow-datafusion-comet/actions/runs/7973418479/job/21767221655?pr=48

@sunchao sunchao changed the title build: fix mvn cache for containerized runners build: Fix mvn cache for containerized runners Feb 20, 2024
@advancedxy advancedxy marked this pull request as draft February 20, 2024 05:54
@advancedxy advancedxy closed this Feb 20, 2024
@advancedxy advancedxy reopened this Feb 20, 2024
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
path: |
~/.m2/repository
/root/.m2/repository
Copy link
Contributor Author

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-
Copy link
Contributor Author

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
Copy link
Contributor Author

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.

@advancedxy advancedxy closed this Feb 20, 2024
@advancedxy advancedxy reopened this Feb 20, 2024
@advancedxy advancedxy marked this pull request as ready for review February 20, 2024 15:35
@advancedxy
Copy link
Contributor Author

cc @sunchao

Copy link
Member

@sunchao sunchao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@sunchao sunchao merged commit a07cce3 into apache:main Feb 20, 2024
17 of 18 checks passed
@sunchao
Copy link
Member

sunchao commented Feb 20, 2024

Merged, thanks

@advancedxy advancedxy deleted the fix_mvn_cache branch February 21, 2024 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maven cache in Github workflow is not working
3 participants