Skip to content

Commit

Permalink
Ensure benchmarks are saved and loaded from the same file
Browse files Browse the repository at this point in the history
  • Loading branch information
caass committed Oct 30, 2024
1 parent 7474652 commit c3d3b35
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ jobs:
needs:
- test-bench
- test-integration
env:
CRITERION_OUTPUT_FILE: benchmarks.json
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
Expand All @@ -125,12 +127,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run benchmarks
run: just bench --message-format=json --color=always > benchmarks.jsonl
run: just bench --message-format=json --color=always > ${{ env.CRITERION_OUTPUT_FILE }}
env:
AOC_INPUTS_SECRET: ${{ secrets.AOC_INPUTS_SECRET }}
- name: Upload benchmarks
uses: actions/[email protected]
with:
name: benchmark-results-${{ github.sha }}
path: benchmarks.jsonl
path: ${{ env.CRITERION_OUTPUT_FILE }}
if-no-files-found: error

0 comments on commit c3d3b35

Please sign in to comment.