danieleades / mdbook-d2

D2 diagram generator plugin for MdBook
MIT License
20 stars 7 forks source link

Publish Github releases with static Linux binaries #46

Open langston-barrett opened 10 months ago

langston-barrett commented 10 months ago

Hi, thanks for the awesome tool!

I'd like to use this in a CI build. The build would go faster and use fewer resources if I were able to download a statically-linked Linux executable from the Github releases, rather than use cargo install. It's actually pretty easy to set up Github Actions to automatically create draft releases with attached static binaries whenever you push a git tag. An example CI setup from one of my own projects is available here: https://github.com/langston-barrett/mdlynx/blob/main/.github/workflows/release.yml

Feel free to close this issue if this doesn't appeal to you or sounds like too much work, I just figured I'd share my use-case and the above link in case it's helpful!