-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
fix Windows nightly build uploads #5968
Conversation
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.
I just looked into this.
The SETLOCAL
and ENDLOCAL
commands are there because msvc_build.bat
should not be polluting all developers' environments with mysterious generically-named variables just because AppVeyor happens to need one of them. (Also, we need to make sure that command extensions are enabled, and SETLOCAL
is the command that does that.)
Anyway, to address the problem at hand:
Appveyor is apparently relying on BUILD_FOLDER
having been set by msvc_build.bat
, which is not a good idea at all. (OTOH, it's not using INSTALL_FOLDER
, which I guess we can be thankful for.)
To fix this, I don't think we should be reverting to the old behavior of polluting the environment.
The real fix would be to provide a better and clearly documented optional mechanism for msvc_build.bat
to communicate any required information back to its caller. (My suggestion is to add an optional command-line parameter that explicitly specifies the target build folder, which would actually turn the communication the other way around.)
In the meantime, I think we can implement a quick fix without touching msvc_build.bat
that takes advantage of the fact that msvc_build.bat
ends with the current working directory set to the build folder.
To do this in your current PR, first undo the changes to msvc_build.bat
, then add this line to the end of build\appveyor\build_script.bat
(after the two calls to msvc_build.bat
):
FOR %%I in (.) DO SET BUILD_FOLDER=%%~nxI
I don't have access to an AppVeyor environment to test this, so could you please test and see if this works?
Thank you for your comment. |
Sorry that my suggestion didn't end up being useful. I'm glad that you were able to come up with something better! |
Indeed fixed, MuseScoreNightly-2020-04-21-1415-master-333752a-x86_64.7z is there now |
This is another tentative at fixing Windows nightly uploading when using Appveyor MSVC 2019 image.