axodotdev / cargo-dist

📦 shippable application packaging
https://axodotdev.github.io/cargo-dist/
Apache License 2.0
1.35k stars 56 forks source link

Subdirectory/Monorepo support? #870

Open DenuxPlays opened 4 months ago

DenuxPlays commented 4 months ago

Hey, In one of my rust projects we use a monorepo. I've wondered if it is possible to tell cargo-dist to run all the workflows within a sub directory?

ashleygwilliams commented 4 months ago

@DenuxPlays hey! we do support this. a good example is how libsql uses us. the primary tool that they use is that they "namespace" the tag that they release libsql-server with, and they configure cargo-dist using the "tag-namespace" config to recognize it.

here's a link to the "tag-namespace" docs: https://opensource.axo.dev/cargo-dist/book/reference/config.html#tag-namespace

and here's a link to the libsql monorepo if you are curious about an example! https://github.com/tursodatabase/libsql/blob/main/.github/workflows/libsql-server-release.yml

DenuxPlays commented 4 months ago

@DenuxPlays hey! we do support this. a good example is how libsql uses us. the primary tool that they use is that they "namespace" the tag that they release libsql-server with, and they configure cargo-dist using the "tag-namespace" config to recognize it.

here's a link to the "tag-namespace" docs: https://opensource.axo.dev/cargo-dist/book/reference/config.html#tag-namespace

and here's a link to the libsql monorepo if you are curious about an example! https://github.com/tursodatabase/libsql/blob/main/.github/workflows/libsql-server-release.yml

That sounds awesome. Our release procedure has changed a little bit I will have to look into if we can implement cargo-dist in it.