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

Use -native Mill binary in Mill's own build #4294

Merged
merged 58 commits into from
Jan 13, 2025

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Jan 12, 2025

Needed some fixes in the bootstrap scripts to prevent the enclosing environment from leaking through. We can then remove the setup-java step from all of our workflows, since the Mill native executable will bootstrap the JVM as necessary

We can now run most of github actions jobs without installing Java beforehand, except for the pre-build step where selective.prepare step which runs on main and thus does not have these changes. Once this PR is merged, we can remove setup-java from pre-build as well

@lihaoyi lihaoyi changed the title Use -native Mill binary in Mill Use -native Mill binary in Mill's own build Jan 12, 2025
@lihaoyi
Copy link
Member Author

lihaoyi commented Jan 12, 2025

disabling the failing scalapb test on windows for now; it appears to be a test infra issue caused by adding .mill-jvm-opts, but it shouldn't affect the actual application code

@lihaoyi lihaoyi marked this pull request as ready for review January 13, 2025 01:39
@lihaoyi lihaoyi merged commit 4535bce into com-lihaoyi:main Jan 13, 2025
27 checks passed
@lefou lefou added this to the 0.12.6 milestone Jan 13, 2025
@lihaoyi lihaoyi mentioned this pull request Jan 16, 2025
lihaoyi added a commit that referenced this pull request Jan 16, 2025
Just some cleanup, removes the no longer necessary `setup-java` step and
consolidates on `Jvm.launcherUniversalScript`.

The unstable version strings look ugly due to #4294 modifying the
`.mill-jvm-version` file to change the version, resulting in a `-DIRTY`
suffix. Will fix that separately
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.

2 participants