Skip to content

Commit

Permalink
ci: Emit benchmark metrics from scheduled runs (#5064)
Browse files Browse the repository at this point in the history
  • Loading branch information
goatgoose authored Jan 30, 2025
1 parent 76561dc commit 3e57b05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,16 @@ jobs:
run: cargo criterion --message-format json > criterion_output.log

- name: Configure AWS Credentials
if: github.event_name == 'push'
# Only continue with the workflow to emit metrics on code that has been merged to main.
if: github.event_name != 'pull_request'
uses: aws-actions/[email protected]
with:
role-to-assume: arn:aws:iam::024603541914:role/GitHubOIDCRole
role-session-name: s2ntlsghabenchsession
aws-region: us-west-2

- name: Emit CloudWatch metrics
if: github.event_name == 'push'
if: github.event_name != 'pull_request'
run: |
python3 .github/bin/criterion_to_cloudwatch.py \
--criterion_output_path bindings/rust/standard/bench/criterion_output.log \
Expand Down

0 comments on commit 3e57b05

Please sign in to comment.