fix: file size artifact path #2
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: Test new code | |
on: | |
# Run whenever this workflow is changed on the main branch. | |
push: | |
branches: [main] | |
# Run whenever a PR is opened or updated, but do not upload results. | |
pull_request: | |
# Allow running manually. | |
workflow_dispatch: | |
jobs: | |
run-bench-suite: | |
name: Run benchmark suite | |
uses: ./.github/workflows/bench-suite.yml | |
upload-to-bencher-dry: | |
name: Upload results to Bencher in a dry run | |
runs-on: ubuntu-22.04 | |
needs: run-bench-suite | |
steps: | |
- name: Install Bencher | |
uses: bencherdev/bencher@main | |
- name: Download benchmark results | |
uses: actions/download-artifact@v4 | |
with: | |
name: benchmark-results | |
- name: Download file size binaries | |
uses: actions/download-artifact@v4 | |
with: | |
name: file-size | |
path: file-size | |
- name: Upload benchmarks to Bencher | |
env: | |
BENCHER_PROJECT: bevy | |
BENCHER_API_TOKEN: ${{ secrets.BENCHER_API_TOKEN }} | |
BENCHER_TESTBED: github-actions | |
run: | | |
bencher run \ | |
--dry-run \ | |
--adapter rust_criterion \ | |
--hash ${{ needs.run-bench-suite.outputs.bevy-hash }} \ | |
--file results.txt | |
- name: Upload file sizes to Bencher | |
env: | |
BENCHER_PROJECT: bevy | |
BENCHER_API_TOKEN: ${{ secrets.BENCHER_API_TOKEN }} | |
BENCHER_TESTBED: github-actions | |
run: | | |
bencher run \ | |
--dry-run \ | |
--adapter json \ | |
--hash ${{ needs.run-bench-suite.outputs.bevy-hash }} \ | |
--file-size file-size/default \ | |
--file-size file-size/minimal \ | |
--file-size file-size/empty |