cargo-samply 0.3.2

A cargo subcommand to automate the process of running samply for project binaries
Documentation
on: push
name: Continuous integration

jobs:
  lints:
    name: Lints
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os:
          - ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: Install Rust toolchain
        uses: dtolnay/rust-toolchain@stable
        with:
          components: rustfmt, clippy

      - name: "Cache cargo"
        id: cache-cargo
        uses: "actions/cache@v4"
        with:
          path: |
            ~/.cargo/bin/
            ~/.cargo/registry/index/
            ~/.cargo/registry/cache/
            ~/.cargo/git/db/
            target/
          save-always: true
          key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
          restore-keys: ${{ runner.os }}-cargo-

      - name: Run tests
        run:  cargo test --release
        env:
          NO_COLOR: 1
          TERM: dumb
          CARGO_TERM_COLOR: never

      - name: Run cargo fmt
        uses: actions-rs/cargo@v1
        # No need to execute it multiple times
        if: matrix.os == 'ubuntu-latest'
        with:
          command: fmt
          args:  --all -- --check

      - name: Run clippy
        uses: actions-rs/cargo@v1
        with:
          command: clippy
          args: --all-targets --all-features