Skip to content

Compliant with spec v1.0.0-rc.1 (#134) #41

Compliant with spec v1.0.0-rc.1 (#134)

Compliant with spec v1.0.0-rc.1 (#134) #41

Workflow file for this run

name: 📈 Benchmark

Check failure on line 1 in .github/workflows/bench.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/bench.yml

Invalid workflow file

(Line: 37, Col: 17): Unrecognized named-value: 'runs-on'. Located at position 1 within expression: runs-on
on:
push:
branches: [ main ]
pull_request:
branches: [ '**' ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
override: true
toolchain: stable
- name: Cache Project
uses: Swatinem/rust-cache@v2
- name: Run Benchmark
run: cargo bench --features test_utils -- --output-format bencher | tee output.txt
- name: Upload Benchmark Result Artifact
uses: actions/upload-artifact@v4
with:
name: bench_result-${{runs-on}}
path: output.txt
- name: Create gh-pages Branch
uses: peterjgrainger/action-create-branch@v2.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: gh-pages
- name: Store Benchmark Result
uses: benchmark-action/github-action-benchmark@v1
with:
name: Rust Benchmark
tool: 'cargo'
output-file-path: output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: ${{ github.event_name == 'push' && github.repository == 'ucan-wg/ucan' && github.ref == 'refs/heads/main' }}
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@ucan-wg'