alloc-metrics 0.1.1

A global allocator that tracks allocation metrics
Documentation
name: CI

on:
  push:
  pull_request:

jobs:
  doc:
    name: doc
    runs-on: ubuntu-latest
    strategy:
      matrix:
        thread: ["", "thread"]
        global: ["", "global"]
    env:
      RUSTDOCFLAGS: "-D warnings"
    steps:
      - uses: actions/checkout@v2
      - uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: stable
          override: true
      - uses: actions-rs/cargo@v1
        with:
          command: doc
          args: --no-deps --no-default-features --features ${{ matrix.thread }},${{ matrix.global }},

  test:
    name: test
    runs-on: ubuntu-latest
    strategy:
      matrix:
        opt: ["", "--release"]
        thread: ["", "thread"]
        global: ["", "global"]
    steps:
      - uses: actions/checkout@v2
      - uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: stable
          override: true
      - uses: actions-rs/cargo@v1
        with:
          command: test
          args: --lib ${{ matrix.opt }} --no-default-features --features ${{ matrix.thread }},${{ matrix.global }},

  test-miri:
    name: test-miri
    runs-on: ubuntu-latest
    strategy:
      matrix:
        opt: ["", "--release"]
        thread: ["", "thread"]
        global: ["", "global"]
    steps:
      - uses: actions/checkout@v3
      - uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: nightly
          override: true
      - run: rustup component add miri
      - run: cargo miri test

  audit:
    name: audit
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: stable
          override: true
      - run: cargo install cargo-audit
      - run: cargo generate-lockfile
      - run: cargo audit --deny warnings