azamcodec 0.1.5

Encoder and decoder library for Azam Codec
Documentation
name: bench

on:
  push:
    branches:
      - main
      - develop
    tags:
      - 'v[0-9]+.[0-9]+.[0-9]+'
  schedule:
    - cron: '0 9 * * 5'
  workflow_dispatch:

jobs:
  run-bench:
    name: run-benchmark-on-${{matrix.channel}}
    strategy:
      matrix:
        name:
          - rust-stable
          - rust-nightly
        include:
          - name: rust-stable
            channel: stable
          - name: rust-nightly
            channel: nightly
    runs-on: ubuntu-latest
    steps:
      - name: checkout-${{matrix.channel}}
        uses: actions/checkout@v3
      - name: setup-toolchain-${{matrix.channel}}
        uses: dtolnay/rust-toolchain@master
        with:
          toolchain: ${{matrix.channel}}
          components: rustfmt
      - name: cargo-build-${{matrix.channel}}
        run: cargo build
      - name: cargo-check-${{matrix.channel}}
        run: cargo check
      - name: cargo-bench-${{matrix.channel}}
        run: cargo bench
      - name: upload-bench-results-${{matrix.channel}}
        uses: actions/upload-artifact@v4
        with:
          name: azamcodec_bench_${{matrix.channel}}_${{github.sha}}
          path: ./target/criterion