Enable benches in ci #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: benchmark | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
permissions: | |
# deployments permission to deploy GitHub pages website | |
deployments: write | |
# contents permission to update benchmark contents in gh-pages branch | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/dojoengine/dojo-dev:136a67a | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run benchmark | |
run: cargo bench --bench codec -- --output-format bencher |sed 1d | tee output.txt | |
- name: Store benchmark result | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
tool: "cargo" | |
output-file-path: output.txt | |
benchmark-data-dir-path: "." | |
# Access token to deploy GitHub Pages branch | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
# Push and deploy GitHub pages branch automatically | |
auto-push: true | |
alert-threshold: "130%" | |
comment-on-alert: true | |
alert-comment-cc-users: "@kariy,@glihm,@tarrencev" |