diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 733d80b3..517d1eca 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -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" diff --git a/benchmark.sh b/benchmark.sh index a7dc510f..0c730331 100644 --- a/benchmark.sh +++ b/benchmark.sh @@ -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"