-
Notifications
You must be signed in to change notification settings - Fork 36
👷 add windows CI for MLIR #952
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
Conversation
Signed-off-by: burgholzer <[email protected]>
for any new version of LLVM the build directory would be irrelevant anyway. Signed-off-by: burgholzer <[email protected]>
Signed-off-by: burgholzer <[email protected]>
that has led to several problems over the last couple of weeks and I have heard critical voices for using it on Windows. We might want to use `-T ClangCL` to compile with clang though. Signed-off-by: burgholzer <[email protected]>
Signed-off-by: burgholzer <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @DRovara for pushing this 🙏🏼
This was already looking pretty great. I just applied some small finishing touches here and there.
Let's see if CI passes and hope that caching works once this is on the main
branch. Waiting two hours for CI certainly is not fun 🙃
I guess my only real question would be if we really want to check out the X.1.0
version of MLIR or whether we would actually like to check out the latest X.Y.Z
version, i.e., the latest minor and patch version, which would mirror what the Ubuntu runner is currently doing.
Potentially, we might even opt for doing both in the future, testing the lowest supported LLVM version and the latest one. Similar to how we do testing for the Python package at the moment.
But I guess this is something to keep in mind for the future.
Sure, looks good to me! |
Good question. I do not really know to be honest. |
I'm not so sure about that. First of all, that could lead to a lot of manual maintenance work, and also that could cause confusion because suddenly after an update, the Linux CI may fail while the one for Windows still passes because we didn't manually update it yet. |
Fine with me. And I generally agree with your statement. I just became a bit cautious over the years to demand such extra miles ;o) |
Alright, I'm not sure if this is the most idiomatic/cleanest way to do it (would be cool if you could have another look at it @burgholzer), but this solution seems to work. I use The changes in the build system (maybe the move away from ninja?) also made it so that |
…her testing The cache will only be stored if an action passes. Therefore, to be able to do further testing, we first run the ci without the problematic step.
(still WIP)
…ipt must be in bash style
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work on this @DRovara 🙏🏼
The test execution command looks slightly cryptic to me, but I currently do not have the time myself to search for better ways of runnning the tests and this seems to work.
I think some of these commands would potentially benefit from
shell: bash
because then the syntax is much more uniform between the systems.
Let's tackle this in a potential follow-up PR though and get this in 😌
Description
This PR adds MLIR CI tests for windows runners.
This is achieved by building MLIR from source so the first execution should take a bit longer.
Afterwards, the cache will be used to store the built versions of MLIR.
This PR contributes to #925
Note: To install a specific version, the runner clones the tag
llvmorg-{version}.1.0
. It seems that the first release of a new majorllvm-project
version is typically called{version}.1.0
so this should keep working, but there is no guarantee.Checklist: