Skip to content

Commit

Permalink
Add macosX64. Correct paths to reports
Browse files Browse the repository at this point in the history
  • Loading branch information
OptimumCode committed Jun 30, 2024
1 parent 944101b commit 13e4134
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
# additional-task: ''
- os: macos-latest
additional-task: '-x :benchmark:jvmBenchmark'
- os: macos-13 # for macosX64
additional-task: '-x :benchmark:jvmBenchmark'
- os: windows-latest
additional-task: '-x :benchmark:jvmBenchmark'
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -146,7 +148,7 @@ jobs:
- name: Prepare and join benchmark reports
id: prep
run: |
for report in $(find ./${{ env.RESULTS_DIR }}/build/reports/benchmarks/main -type f -name "*.json")
for report in $(find ./${{ env.RESULTS_DIR }} -type f -name "*.json")
do
file_name=$(basename "$report")
platform="${file_name%.*}"
Expand All @@ -155,7 +157,7 @@ jobs:
AGGREGATED_REPORT=aggregated.json
# Joinded reports looks like this: [[{},{}], [{},{}]]
# We need to transform them into this: [{},{}]
jq -s '[ .[] | .[] ]' ${{ env.RESULTS_DIR }}/build/reports/benchmarks/main/**/*.json > $AGGREGATED_REPORT
jq -s '[ .[] | .[] ]' ${{ env.RESULTS_DIR }}/**/*.json > $AGGREGATED_REPORT
echo "report=$AGGREGATED_REPORT" >> $GITHUB_OUTPUT
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
Expand Down

0 comments on commit 13e4134

Please sign in to comment.