Skip to content

Commit

Permalink
generate report name
Browse files Browse the repository at this point in the history
  • Loading branch information
fkorotkov committed Nov 11, 2024
1 parent 90a80bd commit aa2aae8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
run: uptime
- name: Check xclogparser
run: ./xclogparser-0.23.8 --help
- name: Generate Report Name
run: echo "REPORT_NAME=$(echo ${{ matrix.image }} | sed 's/:/-/g')" >> $GITHUB_ENV
- name: Run benchmark
run: sh benchmark.sh
- name: Sanitize image name
run: echo "SANITIZED_IMAGE=$(echo ${{ matrix.image }} | sed 's/:/-/g')" >> $GITHUB_ENV
- name: Save report
uses: actions/upload-artifact@v4
with:
name: "${{ env.SANITIZED_IMAGE }}.report.json"
path: report.json
name: "${{ env.REPORT_NAME }}.json"
path: "${{ env.REPORT_NAME }}.json"
2 changes: 1 addition & 1 deletion benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if [ -n "$PATH_TO_PROJECT" ]; then
-resultBundlePath "$PATH_TO_RESULT_BUNDLE" \
-showBuildTimingSummary build

./xclogparser-0.23.8 parse --project XcodeBenchmark --derived_data $PATH_TO_DERIVED --reporter chromeTracer > report.json
./xclogparser-0.23.8 parse --project XcodeBenchmark --derived_data $PATH_TO_DERIVED --reporter chromeTracer > $REPORT_NAME.json

echo "System Version:" "$(sw_vers -productVersion)"
xcodebuild -version | grep "Xcode"
Expand Down

0 comments on commit aa2aae8

Please sign in to comment.