File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,25 +99,26 @@ jobs:
9999 - name : ' Run benchmarks for v${{ env.friendly-version }}'
100100 shell : bash
101101 env :
102- benchmarks-artifacts : /tmp/benchmarks
102+ BENCHMARKS_ARTIFACTS : /tmp/benchmarks
103103 run : |
104104 dotnet run \
105105 --project benchmarks/PolylineAlgorithm.Benchmarks/PolylineAlgorithm.Benchmarks.csproj \
106106 --configuration Release \
107+ /p:Platform="Any CPU" \
107108 --framework ${{ vars.DEFAULT_BUILD_FRAMEWORK || 'net10.0' }} \
108109 -- --filter ${{ vars.BENCHMARKDOTNET_FILTER || '*' }} \
109110 --exporters GitHub \
110111 --memory \
111112 --iterationTime 100 \
112113 --join \
113- --artifacts ${{ env.benchmarks-artifacts }} /
114+ --artifacts $BENCHMARKS_ARTIFACTS /
114115
115116 - name : ' Inject benchmark results into guide for v${{ env.friendly-version }}'
116117 shell : bash
117118 env :
118- benchmarks-artifacts : /tmp/benchmarks
119+ BENCHMARKS_ARTIFACTS : /tmp/benchmarks
119120 run : |
120- find ${{ env.benchmarks-artifacts }} - name "*-report-github.md" | sort | xargs cat > /tmp/benchmark_results.md
121+ find "$BENCHMARKS_ARTIFACTS" - name "*-report-github.md" | sort | xargs -r cat > /tmp/benchmark_results.md
121122 awk '/{benchmarks_section}/{while((getline line < "/tmp/benchmark_results.md") > 0) print line; close("/tmp/benchmark_results.md"); next} {print}' \
122123 "api-reference/${{ env.friendly-version }}/guide/benchmarks.md" > /tmp/benchmarks.md
123124 mv /tmp/benchmarks.md "api-reference/${{ env.friendly-version }}/guide/benchmarks.md"
You can’t perform that action at this time.
0 commit comments