Integrated: Add Windows support in GitHub actions
Jorn Vernee
jvernee at openjdk.org
Fri Apr 12 02:07:50 UTC 2024
On Thu, 11 Apr 2024 17:05:33 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> We currently don't run tests in GitHub actions on Windows. This can mean that a build failure on Windows may be missed (as seen recently). This PR adds support for running tests on Windows to the GitHub actions workflow.
>
> Some notes about the changes:
> - We can not build jtreg on Windows, so I've added a separate job which builds it on Ubuntu and then caches it. Then the main test job restores it from this cache. (FWIW, this cache is private/can not be downloaded outside of the actions)
> - The `oracle-actions/setup-java` action we use gives us back a Windows path on Windows, which I don't think we can easily handle in bash, so I've created a Windows specific step for extracting the downloaded toolchain JDK
> - Added caches also for LLVM/libclang and the toolchain JDK, so we don't have to download them all the time, and testing is faster.
> - For that reason, I've added a step that creates a trimmed-down 'image' of the LLVM package with only the bits that we need, so that we can only cache those bits, instead of the entire LLVM package.
This pull request has now been integrated.
Changeset: 8e68b17e
Author: Jorn Vernee <jvernee at openjdk.org>
URL: https://git.openjdk.org/jextract/commit/8e68b17e99b0e9e372840a3ab13edcd8fd9e32f4
Stats: 116 lines in 1 file changed: 78 ins; 7 del; 31 mod
Add Windows support in GitHub actions
Reviewed-by: mcimadamore
-------------
PR: https://git.openjdk.org/jextract/pull/235
More information about the jextract-dev
mailing list