Fix upload of benchmark results in run-benchmarks.sh

This commit is contained in:
Hugo Locurcio
2025-07-07 21:54:42 +02:00
parent f735129892
commit 5101337940
2 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ following commands in that folder:
```bash
cd gdextension/
git odule update --init --recursive
git submodule update --init --recursive
scons
scons target=template_release
```

View File

@@ -260,13 +260,13 @@ echo "$EXTRA_JSON" > "/tmp/extra.md"
# so we only push files to it and do nothing else.
cd /tmp/godot-benchmarks-results/
OUTPUT_PATH="/tmp/godot-benchmarks-results/${DATE}_${COMMIT_HASH}.md"
rm -f "$OUTPUT_PATH"
# Merge benchmark run JSONs together.
# Use editor build as release build errors due to missing PCK file.
echo "Merging JSON files together."
$GODOT_DEBUG --headless --path "$DIR" --script merge_json.gd -- /tmp/cpu_debug.md /tmp/cpu_release.md /tmp/amd.md /tmp/intel.md /tmp/nvidia.md /tmp/extra.md --output-path /tmp/merged.md
OUTPUT_PATH="/tmp/godot-benchmarks-results/${DATE}_${COMMIT_HASH}.md"
rm -f "$OUTPUT_PATH"
$GODOT_DEBUG --headless --path "$DIR" --script merge_json.gd -- /tmp/cpu_debug.md /tmp/cpu_release.md /tmp/amd.md /tmp/intel.md /tmp/nvidia.md /tmp/extra.md --output-path "$OUTPUT_PATH"
# Build website files after running all benchmarks, so that benchmarks
# appear on the web interface.