cargo-samply 0.2.0

A cargo subcommand to automate the process of running samply for project binaries
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: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: stable
          override: true
          components: rustfmt, clippy

      - name: Run build
        uses: actions-rs/cargo@v1
        with:
          command: build
          args: --release

      # - name: Run tests
      #   run: cargo test --release

      - 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