RFR: 8256657: Add cross-compiled build for Windows+Arm64 to submit workflow [v2]

Magnus Ihse Bursie ihse at openjdk.java.net
Thu Dec 3 16:49:57 UTC 2020


On Mon, 30 Nov 2020 15:44:09 GMT, Erik Joelsson <erikj at openjdk.org> wrote:

>> Thanks for all the comments.
>> 
>>> - 40-50 min builds seem to be excessive for just the hotspot build, do youknow what exactly takes that long? Is this for release and debug each or both combined?
>> 
>> It's for each of them. Installing a specific version of MSVC and creating the devkit take each ~10min. Thinking about it,  there is a opportunity to cache the devkit and do the MSVC installer invocation only if no cached devkit is available.
>> 
>> Here is an example run if you want to have a closer look:
>> https://github.com/lewurm/openjdk/runs/1434118318?check_suite_focus=true
>> 
>>> - Is it worth the cycles to build both release *and* debug? How probable is
>> it that a non-win-aarch-dev will break one but not the other? I presume
>> developers on the windows aarch project will have tested the build locally
>> before pushing.
>> 
>> Fair, I'll remove one of them (as suggested by Aleksey in another comment, I'll keep the debug one).
>
> Generating a devkit every time we build seems like a pretty big waste of time. The OpenJDK build is expected to work without devkits, using an installed Visual Studio. Is this not possible with the Windows aarch64 build? If not, then that really should be fixed.

FWIW, here is a patch on top of my winenv rewrite that adds windows-aarch64 support on Github Actions:
https://github.com/magicus/openjdk-sandbox/compare/winenv-rewrite...magicus:winenv-aarch64-gha?expand=1

I've used it while developing the winenv rewrite, but pulled it out of the final integration so as to not mix in the question of enabling more build platforms on GHA in the discussion of the rewrite.

-------------

PR: https://git.openjdk.java.net/jdk/pull/1379



More information about the build-dev mailing list