Skip to content

Commit

Permalink
🚦 Update build step to include github diagnostics
Browse files Browse the repository at this point in the history
The build step has been updated to now include the new
`cargo-github-annotation` tool so that it can output the appropriate
::error messages for inline integrations.
  • Loading branch information
bitwizeshift committed Dec 15, 2023
1 parent 667dd14 commit b29e26e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/actions/cargo-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ description: "Performs a cargo build, with caching"
runs:
using: "composite"
steps:
- name: Cache installation
id: cargo-install
uses: actions/cache@v3
with:
path: .cargo/bin/cargo-github-annotation
key: cargo-install-cargo-github-annotation

- name: Install cargo-github-annotation
shell: bash
run: |
cargo install --git https://github.com/bitwizeshift/cargo---message-format json
- name: Update PATH
shell: bash
run: |
echo "$(pwd)/.cargo/bin" >> "${GITHUB_PATH}"
- name: Cache build
id: cargo-build
uses: actions/cache@v3
Expand All @@ -15,4 +32,5 @@ runs:
if: steps.cargo-build.outputs.cache-hit != 'true'
shell: bash
run: |
cargo build --verbose
cargo build --verbose --message-format json \
| cargo---message-format json

0 comments on commit b29e26e

Please sign in to comment.