Skip to content

Commit

Permalink
feat: run bevy benchmarks, without uploading them
Browse files Browse the repository at this point in the history
  • Loading branch information
BD103 committed May 26, 2024
1 parent 51dd78b commit f45d226
Showing 1 changed file with 34 additions and 9 deletions.
43 changes: 34 additions & 9 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,43 @@
on:
# Run daily at midnight.
schedule:
- cron: 0 0 * * *
# Run whenever this workflow is changed.
push:
branches: [main]
# Allow running manually.
workflow_dispatch:

env:
# Force colorful output, even though we're running in Github Actions.
CARGO_TERM_COLOR: always

jobs:
bench:
name: Bench
runs-on: ubuntu-latest
env:
BENCHER_PROJECT: bevy
steps:
- uses: actions/checkout@v4
- uses: bencherdev/bencher@main
- run: |
bencher run --token ${{ secrets.BENCHER_API_TOKEN }} \
--branch main \
--testbed github-actions \
--adapter json \
--err \
"bencher mock"
- name: Checkout Bevy
uses: actions/checkout@v4
with:
repository: bevyengine/bevy

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

# - name: Install Bencher
# uses: bencherdev/[email protected]

- name: Run benchmarks
working-directory: benches
run: cargo bench

# - run: |
# bencher run --token ${{ secrets.BENCHER_API_TOKEN }} \
# --branch main \
# --testbed github-actions \
# --adapter json \
# --err \
# "bencher mock"

0 comments on commit f45d226

Please sign in to comment.