rustrip 0.1.5

Make stripped Rust binaries readable again: recover slice-string boundaries, demangle symbols, and reconstruct panic source locations from release/stripped ELF/PE binaries.
Documentation
name: Codacy

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]
  workflow_dispatch:

env:
  CARGO_TERM_COLOR: always

permissions:
  contents: read

jobs:
  codacy:
    name: Codacy Coverage Upload
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: dtolnay/rust-toolchain@stable
        with:
          components: llvm-tools-preview

      - uses: Swatinem/rust-cache@v2

      - name: Install cargo-llvm-cov
        run: cargo install --locked cargo-llvm-cov

      - name: Generate coverage (lcov)
        run: |
          mkdir -p target/coverage
          cargo llvm-cov --all-features --workspace --lcov --output-path target/coverage/lcov.info

      - name: Upload coverage to Codacy
        # PR code may compile and generate coverage, but only a trusted
        # default-branch push receives upload credentials.
        if: github.event_name == 'push'
        uses: codacy/codacy-coverage-reporter-action@v1.3.0
        env:
          CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
          CODACY_API_TOKEN: ${{ secrets.CODACY_API_TOKEN }}
        with:
          coverage-reports: target/coverage/lcov.info
          project-token: ${{ env.CODACY_PROJECT_TOKEN }}
          api-token: ${{ env.CODACY_API_TOKEN }}
          force-coverage-parser: lcov