-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: run bevy benchmarks, without uploading them
- Loading branch information
Showing
1 changed file
with
34 additions
and
9 deletions.
There are no files selected for viewing
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
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" |