-
Notifications
You must be signed in to change notification settings - Fork 35
use --install in installation tests on Windows #1310
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
base: main
Are you sure you want to change the base?
Conversation
a3dfd44
to
71bfce1
Compare
07b22ab
to
5f8174a
Compare
5f8174a
to
429e79e
Compare
@@ -181,7 +181,10 @@ def install_umf(self) -> None: | |||
f"Error: Installation directory '{self.install_dir}' is not empty" | |||
) | |||
|
|||
install_cmd = f"cmake --build {self.build_dir} --config {self.build_type.title()} --target install" | |||
if platform.system() == "Windows": | |||
install_cmd = f"cmake --install {self.build_dir} --config {self.build_type.title()} --prefix {self.install_dir}" |
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.
hmm didn't we just circle back to the original issue: #971 ?
Perhaps we should have various CMakes tested also on Windows...?
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.
no, the #971 issue is related to Ubuntu. I added several tests in previous PRs to reproduce this case in our CI. But I'll add testing of various CMake on Windows
a979ab0
to
c8bb496
Compare
8341fc4
to
befc4e7
Compare
This is a fix for the failing test_installation.py on Windows, introduced by #1285. The failures are related to the
--target install
command, which is not properly recognized on Windows. This pull request reverts the installation command to the previous version, which uses--install
for Windows.example of passed Windows Ninja job:
https://github.com/oneapi-src/unified-memory-framework/actions/runs/14972212328/job/42055589833?pr=1310
and Windows NMake job:
https://github.com/oneapi-src/unified-memory-framework/actions/runs/14972212328/job/42055589878?pr=1310