@@ -215,37 +215,37 @@ jobs:
215215 working-directory : ${{ runner.temp }}/${{ env.nuget-packages-directory }}
216216 dotnet-sdk-version : ${{ env.dotnet-sdk-version }}'
217217
218- # benchmark:
219- # if: ${{ github.env.is_release || vars.BENCHMARKDOTNET_RUN_OVERRIDE == 'true' }}
220- # name: Benchmark with .NET CLI on ${{ matrix.os }}
221- # needs: [build]
222- # strategy:
223- # matrix:
224- # os: [ubuntu-latest, windows-latest, macos-latest]
225- # runs-on: ${{ matrix.os }}
226- # steps:
227- # - name: 'Checkout ${{ github.head_ref || github.ref }}'
228- # uses: actions/checkout@v5
229- # - name: Install .NET SDK
230- # uses: actions/setup-dotnet@v4
231- # with:
232- # dotnet-version: |
233- # 8.x
234- # 9.x
235- # - name: Download Build
236- # uses: actions/download-artifact@v5
237- # with:
238- # name: build
239- # - name: Benchmark
240- # working-directory: ${{ vars.BENCHMARKDOTNET_WORKING_DIRECTORY }}
241- # run: dotnet run --configuration ${{ env.build-configuration }} /p:Platform=${{ env.build-platform }} --framework ${{ vars.DEFAULT_BUILD_FRAMEWORK }} --runtimes ${{ vars.BENCHMARKDOTNET_RUNTIMES }} --filter ${{ vars.BENCHMARKDOTNET_FILTER }} --artifacts ${{ runner.temp }}/benchmarks/ --exporters GitHub --memory --iterationTime 100 --join
242- # - name: Upload Benchmark Results
243- # uses: actions/upload-artifact@v4
244- # with:
245- # name: benchmark-${{ matrix.os }}
246- # path: |
247- # ${{ runner.temp }}/benchmarks/**/*-report-github.md
248- # - name: Write Benchmark Summary
249- # shell: bash
250- # run: cat **/*-report-github.md > $GITHUB_STEP_SUMMARY
251- # working-directory: ${{ runner.temp }}/benchmarks/
218+ benchmark :
219+ if : ${{ github.env.is_release || vars.BENCHMARKDOTNET_RUN_OVERRIDE == 'true' }}
220+ name : Benchmark with .NET CLI on ${{ matrix.os }}
221+ needs : [build]
222+ strategy :
223+ matrix :
224+ os : [ubuntu-latest, windows-latest, macos-latest]
225+ runs-on : ${{ matrix.os }}
226+ steps :
227+ - name : ' Checkout ${{ github.head_ref || github.ref }}'
228+ uses : actions/checkout@v5
229+ - name : Install .NET SDK
230+ uses : actions/setup-dotnet@v4
231+ with :
232+ dotnet-version : |
233+ 8.x
234+ 9.x
235+ - name : Download Build
236+ uses : actions/download-artifact@v5
237+ with :
238+ name : build
239+ - name : Benchmark
240+ working-directory : ${{ vars.BENCHMARKDOTNET_WORKING_DIRECTORY }}
241+ run : dotnet run --configuration ${{ env.build-configuration }} /p:Platform=${{ env.build-platform }} --framework ${{ vars.DEFAULT_BUILD_FRAMEWORK }} --runtimes ${{ vars.BENCHMARKDOTNET_RUNTIMES }} --filter ${{ vars.BENCHMARKDOTNET_FILTER }} --artifacts ${{ runner.temp }}/benchmarks/ --exporters GitHub --memory --iterationTime 100 --join
242+ - name : Upload Benchmark Results
243+ uses : actions/upload-artifact@v4
244+ with :
245+ name : benchmark-${{ matrix.os }}
246+ path : |
247+ ${{ runner.temp }}/benchmarks/**/*-report-github.md
248+ - name : Write Benchmark Summary
249+ shell : bash
250+ run : cat **/*-report-github.md > $GITHUB_STEP_SUMMARY
251+ working-directory : ${{ runner.temp }}/benchmarks/
0 commit comments