-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
VCPKG failing to build library #180
Comments
@TheMaverickProgrammer thanks for reporting this issue. There is nothing wrong with how the action is being used, and if it is working for your on your local computer, it should be working on GH runner as well, although there may be some subtle difference that triggers this error. If you are using GitHub hosted runners, I'd try to reproduce the problem on a Linux machine that is based on the exact same environment provided by the GH Image runners: https://github.com/actions/runner-images#available-images If you can provide the content of the log of a workflow where this fail, it may be helpful to get more info. |
It does not! |
This is a first. I don't recall ever explicitly asking vcpkg for dynamic packages for as long as I've used it. Is the behavior different on windows versus linux? (Win defaults to dynamic, linux defaults to static?) Yes even here in my windows folder, all of my vcpkg tuples show up as DLLs so this seems exceptional with the tuple's behavior on the two different OS. |
Yes, Windows defaults to dynamic, and MacOS and Linux default to static. |
That's awful!! I will try the static tuple on linux and report back and close the ticket if it fixes it then. I'm upset with vcpkg standardization. |
You mean dynamic? |
Haha yes I mean dynamic. :) |
It will be a little while longer before I am able to confirm this is the issue on github workflow: see here I use |
Have a look at the quick start code of this repo (in the README). At the end it shows how to change the triplet used. |
I don't see it: I checked the rest of the README and at the bottom it shows the triplet matrix -- which IIRC is used for all packages on a per platform-basis. I don't need to change the triplet for all of my packages, just one package specifically to use the |
You'll need to write a custom triplet then, see this link. |
That is absolutely horrific. Thanks for the link. I was expecting a vpkg optional switch flag or something. Is there no other alternative? |
@TheMaverickProgrammer If I understood correctly the issue is related to vcpkg itself, could you please ask support to the vcpkg's team by creating a new vcpkg issue? |
@TheMaverickProgrammer closing this issue as not related to something run-vcpkg can help with. |
I'm also trying to understand what the correct way to achieve this. Unless I misunderstood, it should be done through expressions, but it is not working. |
@netcorefan1 hopefully the instructions they provided on the vcpkg issue list is helpful, let us know if we can improve the docs on run-vcpkg as well. |
lol it definitely does not. Our only option is to write our own port. |
I hope this is the right place. I don't have any issues using vcpkg + cmake on any of my desktops (win + linux) but with
run-vcpkg
action, I am getting the following issue:As you can see, the tuple is correctly selecting
x64-linux
for this library. I can build on archlinux and ubuntu just fine manually but not on github with this action module.Here's my
vcpkg.json
file:And here's the run step where I include the action:
Is there an explicit "dynamic/static" setting I was supposed to provide somewhere? It seems odd that the tuple is matching the reported constraints and I can build fine with the same vcpkg on all my machines.
The text was updated successfully, but these errors were encountered: