rust-rapport 0.1.2

Formats cargo clippy JSON output for GitHub Actions (step summary, PR annotations, human-readable).
Documentation
name: Upload release binaries

# Normal trigger: when release-plz publishes a GitHub Release after the release PR is merged.
# Manual trigger (workflow_dispatch): attach binaries to an already-published release whose
# assets were skipped (e.g. when release-plz ran with the default GITHUB_TOKEN and the
# release.published event did not propagate to downstream workflows).
on:
  release:
    types: [published]
  workflow_dispatch:
    inputs:
      tag:
        description: "Tag to build & upload binaries for (e.g. v0.1.1)"
        required: true
        type: string

permissions:
  contents: write

env:
  CARGO_TERM_COLOR: always

jobs:
  upload-assets:
    name: Upload ${{ matrix.target }}
    strategy:
      fail-fast: false
      matrix:
        include:
          - target: x86_64-unknown-linux-gnu
            os: ubuntu-latest
          - target: aarch64-unknown-linux-gnu
            os: ubuntu-latest
          - target: universal-apple-darwin
            os: macos-latest
          - target: x86_64-pc-windows-msvc
            os: windows-latest
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v4
        with:
          ref: ${{ inputs.tag || github.ref }}
      - uses: taiki-e/upload-rust-binary-action@v1
        with:
          bin: rust-rapport
          target: ${{ matrix.target }}
          archive: $bin-$target
          tar: unix
          zip: windows
          ref: ${{ inputs.tag && format('refs/tags/{0}', inputs.tag) || github.ref }}
          token: ${{ secrets.GITHUB_TOKEN }}