-
Notifications
You must be signed in to change notification settings - Fork 51
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
Could someone please show us how to deploy from GitHub Actions #135
Comments
Hi @PaulRBerg. If GitHub is using a different target by default then you will need to install the We use I'll work on getting you a basic example that deploys via GH Actions 🙏 |
Okay, here's a basic example that deploys via GitHub Actions. https://github.com/dglsparsons/rust-vercel-demo/ The one endpoint it creates is available here. Hope this helps! |
Thanks very much, @dglsparsons we have made our CI script work with your help. Some feedback for this repo: a section about GitHub Actions/ CI would go a long way. I'm sure others will be in our shoes in the future. |
Update: installing Rust with the target - name: "Install musl-tools to provide musl-gcc"
uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: "musl-tools"
version: "1.0" I suspect that this is because one of our dependencies required Again, I think that documenting these processes in the README of this repository would be tremendously valuable for Vercel users who wish to deploy Rust-based APIs. I could take a stab at a PR, but I'm pretty sure that I would butcher the explanation. References:
And: See full CI error details
error: failed to run custom build command for Caused by: --- stderr error occurred: Failed to find tool. Is error: failed to run custom build command for Caused by: *** OpenSSL has been successfully configured *** *** If you encounter a problem while building, please open an *** *** perl configdata.pm --dump *** *** (If you are new to OpenSSL, you might want to consult the *** running cd "/home/runner/work/v2-services/v2-services/target/x86_64-unknown-linux-musl/release/build/openssl-sys-309c90de0034917a/out/openssl-build/build/src" && "make" "depend" --- stderr Error building OpenSSL: note: run with |
My colleague @gavriliumircea and I have spent hours debugging our GitHub Actions workflow. We are trying to make it possible to deploy our Rust web server from within an Ubuntu-powered GitHub Action, to no avail.
We've gotten all sorts of errors, all related to the build target. It seems that GitHub is using
x86_64-unknown-linux-gnu
for their Linux distribution, whereas Vercel is expecting amusl
target. Speaking of which, is it not clear why this is a requirement (some additional color in the README would be great).Could someone give us some guidance, please? An example would be super duper helpful!
Cc @Brendonovich @ecklf @dglsparsons @mike-engel
The text was updated successfully, but these errors were encountered: