sablier-labs / v2-merkle-api

https://v2-services.vercel.app
GNU General Public License v3.0
4 stars 1 forks source link

Fix deploy github action #6

Closed gavriliumircea closed 10 months ago

gavriliumircea commented 1 year ago

Right now the "Merkle API Deployment on Vercel" github action cannot be used. This seems to be related to a mismatch between the rust build target and the linux image created by vercel. Before trying to run the action it is mandatory to recreate .cargo/config.toml file (https://github.com/vercel-community/rust#prebuilt-deployments). Before trying to a fix check the list bellow that contains a series of commits with "failed fixes attempts":

PaulRBerg commented 11 months ago

Before trying to run the action it is mandatory to recreate .cargo/config.toml file

Am I right that this is because vercel build does not allow us to pass custom compilation options, and so we need to resort to the configuration file approach?

gavriliumircea commented 11 months ago

It seems like it but the vercel team doesn't really offer a proper explanation or an alternative for that config file.

PaulRBerg commented 11 months ago

Yes, it seems like it. I asked them yesterday why there's that requirement:

https://github.com/vercel-community/rust/issues/134