Skip to content

Commit

Permalink
ci: add annotations for all cargo commands
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianFranzen committed Jul 3, 2024
1 parent 78b5fce commit 8581cf8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/actions/cargo-command/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ runs:
run: rustup show
- name: Install cargo-cache
shell: bash
run: cargo install cargo-cache
- name: Cleanup cargo cache
shell: bash
run: cargo cache --autoclean
run: cargo install cargo-action-fmt
- name: Cache cargo registry and index
uses: actions/cache@v4
with:
Expand All @@ -55,4 +52,4 @@ runs:
env:
CARGO_TERM_COLOR: always
shell: bash
run: cargo ${{ inputs.command }} ${{ inputs.package != '' && '--package' || '' }} ${{ inputs.package }} --profile '${{ inputs.profile }}' --features '${{ inputs.features }}' ${{ inputs.args }}
run: cargo ${{ inputs.command }} ${{ inputs.package != '' && '--package' || '' }} ${{ inputs.package }} --profile '${{ inputs.profile }}' --features '${{ inputs.features }}' ${{ inputs.args }} --message-format json | cargo-action-fmt

0 comments on commit 8581cf8

Please sign in to comment.