-
Notifications
You must be signed in to change notification settings - Fork 392
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
Act: Build fails with sh: 1: cargo: not found
#1321
Comments
you'll probably need Pass in Also, actions-rs is unmaintained, I'd highly recommend you find an alternative |
I've already tried with
I didn't know that actions-rs was unmaintained, do you know an alternative for me ? |
I don't know how act works and I've never gotten it to work myself. I suspect it's setting something weirdly, I'm not sure how to solve it The error comes from that it's not possible to re-mount inside a running container without access to the underlying filesystem. To get the path to the underlying fs we need to query docker for where the files actually live. Another possible solution would be to use |
This just reminded me, you might have to make act add |
I didn't find anything about how to add |
Pretty sure this is a docker-in-docker-in-docker issue, at least it was in my case. Basically cross tries to mount volumes into the the build container, but because cross/action-rs itself is running in a container, the mounts are relative to the act runner, not the container cross is called from. I had to mount and use a volume like this:
This is just an example, you need to install the rust toolchain as well. If you use a |
Could you adapt it to my workflow ? |
Looks something is really wrong with I've created setup for Results can be found in the You also can check the repo with code I've created for my experiments. |
…g `HOSTNAME` fails Fixes cross-rs#1321.
Hello, I've just finished the new version of my project. But when I did the PR an error occurred in the workflow. So I decided to revert the merge and tested the workflow locally with Act. Unfortunately, I discovered that, locally, I had one more error.
For Information MacOS isn't running with Act.
The cross version is the
v0.2.5
The Error
The Job:
Here is the verbose log for only one target (windows x86_64)
Thanks to all the people who will try to solve my problem
The text was updated successfully, but these errors were encountered: