Support installing multiple crates at once
brainstorm opened this issue · 3 comments
brainstorm commented
See umccr/reusable-github-actions@8f8f053 for more context.
- name: Install several audit crates
uses: baptiste0928/cargo-install@v1
with:
crate:
- cargo-deny
- cargo-udeps
- cargo-outdated
- cargo-pants
- cargo-audit
baptiste0928 commented
Hello! You can use cargo-install multiple times in the same workflow if you need to install multiple crates. I don't really see the point of allowing multiple crates to be installed in one step.
brainstorm commented
Yes, it can be done this way, but this issue was primarily about having less lines of code.
jonaprieto commented
See umccr/reusable-github-actions@8f8f053 for more context.
- name: Install several audit crates uses: baptiste0928/cargo-install@v1 with: crate: - cargo-deny - cargo-udeps - cargo-outdated - cargo-pants - cargo-audit
I certainly see a benefit here, for readability and maintenance.
Please consider adding this feature in the future. Using multiple times the action for installing
100 dependencies make no sense.
Yes, it can be done this way, but this issue was primarily about having less lines of code.
+1