This commit is similar to what we had to do for Java 22-ea.
Given our actions have changed quite a bit, this commit replaces the
"java-distribution" parameter by a "java-early-access" parameter. When
set, it automatically switches the distribution to temurin as well as
applying the same handling of the Java version as in b8a6cab.
See gh-41698
A full build requires a lot of disk space. I believe this is mostly
due to the large number of Docker images that the tests utilize. By
default, the amount of free disk space on an ubuntu-latest runner
does not meet or needs. In this commit, we work around this using
the free-disk-space action which deletes things like the Android
SDK and Haskell installations that are both large and not needed by
our builds.
Closes gh-40705