benchmarks.yml 991 B
Newer Older
name: Benchmarks

on:
  schedule:
Denis_P's avatar
Denis_P committed
    - cron: "0 0 * * *"

jobs:
  bench:
    name: Run benchmarks daily
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Sources
      - name: Install Rust nightly toolchain
        with:
          profile: minimal
          toolchain: nightly
          override: true

Denis_P's avatar
Denis_P committed
      - name:                      Rust Cache
        uses:                      Swatinem/[email protected]
      - name: Run benchmark
        run: cargo bench -p jsonrpsee-benchmarks -- --output-format bencher | tee output.txt

      - name: Store benchmark result
        uses: rhysd/github-action-benchmark@v1
        with:
          tool: 'cargo'
          output-file-path: output.txt
          fail-on-alert: true
          github-token: ${{ secrets.GITHUB_TOKEN }}
          comment-on-alert: true
          alert-comment-cc-users: '@niklasad1, @maciejhirsz'
          auto-push: true