-
Notifications
You must be signed in to change notification settings - Fork 49
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
Add Windows CI #124
Add Windows CI #124
Conversation
According to the log I suppose we're using powershell so maybe you could try: |
Thanks a lot! :) |
Am I doing something wrong? |
You could try using Another option could be to use Yet another option could be to use pacman from msys (installing msys like https://github.com/mozilla/DeepSpeech/blob/5e46d702afd0729783bd4be1c78116f8f9864bc9/taskcluster/win-opt-base.tyml#L73, then using a command such as https://github.com/mozilla/DeepSpeech/blob/5e46d702afd0729783bd4be1c78116f8f9864bc9/taskcluster/win-opt-base.tyml#L60). |
Ahhhh!! patches for CI... |
@calixteman Practically I can't find the |
Maybe in runing |
Yep, I've tried to run that, but the path is not correct. Which
|
Nope, the path doesn't exist |
It seems there isn't |
This is all we have in the image: https://raw.githubusercontent.com/taskcluster/generic-worker/2509a1f8589b0b536186f5fe8f043385bf67197f/worker_types/win2012r2/bootstrap.ps1. The Windows SDK 8.1 is installed:
It should probably have the linker, we "just" need to figure out how to use it :P |
Don't we have a windows image with VS inside ? |
This image is used to build Firefox, so the linker should be available. |
It could be in some directory under C:\Program Files\Microsoft SDKs or C:\Program Files\Windows Kits |
Would it be possible to install Anyway, the linker should be installed by this command:
Now I just need to know where :P |
(This is the setup script for the image: https://raw.githubusercontent.com/taskcluster/generic-worker/2509a1f8589b0b536186f5fe8f043385bf67197f/worker_types/win2012r2/bootstrap.ps1). |
It'd probably increase the size of the image too much, they just install the SDK and other dependencies because not all features of Visual Studio (especially the UI) are needed. |
We need to have a C/C++ compiler for tree-sitter stuff + linker of course. |
I don't think Visual Studio is necessary, the Windows SDK (which we have in the image) should be enough. |
That's true, let me try with the current linker then. Let's hope it works
These problems will be solved as soon as the |
You're right: https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Windows_SDK_versions |
I'm trying to get access to a machine with that imageset so I can check where the linker is. |
So it seems the Microsoft linker is not installed with the SDK with Choco :( We could try with the linker from C:\go\pkg\tool\windows_amd64, maybe we are lucky. |
I will try to use the
I've already used that package, it takes quite a lot to be installed, so we should add it to the image and recreate the image |
It doesn't work the Thanks a lot! |
We should start with installing it here, and then we can figure out if we can add it to the image (we might have to define a separate one, I need to talk with who manages that image). |
Or maybe we could use the deepspeech image which should contain what we need. |
Yeah, we could do that and hope they keep what we need. If they don't, we'll have to define our own. |
There is a lot of useless stuff for us in this image and we should probably create one for "standard" projects so we should create new one. |
It seems I can't change the image |
Not yet, the right scopes need to be added. I'll do it on Monday. |
I'm not sure how upstream would be amenable to this, we could complete a first pass by oxidizing the rust and the cpp parsers and see how they work with r-c-a first. |
Let's start by trying to install the package here, once we get it working we can decide about what to do with the image. Updating the image is a long process, so the trial and error to update the image first and then this PR, then the image again, etc., etc., would be super painful. You could try to install https://chocolatey.org/packages/visualstudio2019buildtools, which can also be installed without admin rights if you pass the |
I tried your method but I get the following error Furthermore, that directory can't be changed with the Other than that, if we succeed, how can we reboot the machine? From the
|
That's the chocolatey argument, but we can instead pass the installation directory as a package parameter (so it's passed to the VS installer) like I mentioned above:
Let's hope it's not required for us, we'll see. |
I tried but it doesn't seem to work because of the error mentioned above: c0d78bf |
OMG, this is super painful. I guess we'll have to do trial and error with the image. I'll comment here when it's ready. |
Thank you! :) Perhaps the simplest thing would be to install a licensed version of |
Image updated, you can use |
Thanks a lot @marco-c! :) I will work on that on Monday! |
No, thank you ;) |
c2489d3
to
75bd5cd
Compare
\o/ |
Yeah!! :D |
This PR adds a CI for
Windows