Skip to content

Update to .NET 9 preview 7 #21

Update to .NET 9 preview 7

Update to .NET 9 preview 7 #21

Workflow file for this run

name: benchmark-ci
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: 1
NUGET_XMLDOC_MODE: skip
TERM: xterm
on:
push:
branches:
- main
- dotnet-vnext
- dotnet-nightly
paths-ignore:
- '**/*.gitattributes'
- '**/*.gitignore'
- '**/*.md'
workflow_dispatch:
permissions:
contents: read
jobs:
benchmark:
name: benchmark
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
- name: Run benchmarks
shell: pwsh
run: ./benchmark.ps1 -Job Short
- name: Get repository name
id: get-repo-name
shell: pwsh
run: |
$repoName = ${env:GITHUB_REPOSITORY}.Split("/")[-1]
"repo-name=${repoName}" >> ${env:GITHUB_OUTPUT}
- name: Publish results
uses: benchmark-action/github-action-benchmark@v1
with:
auto-push: true
alert-comment-cc-users: '@${{ github.repository_owner }}'
benchmark-data-dir-path: ${{ steps.get-repo-name.outputs.repo-name }}
comment-on-alert: true
fail-on-alert: true
gh-pages-branch: ${{ github.ref_name }}
gh-repository: 'github.com/${{ github.repository_owner }}/benchmarks'
github-token: ${{ secrets.BENCHMARKS_TOKEN }}
name: 'Project Euler'
output-file-path: BenchmarkDotNet.Artifacts/results/MartinCostello.ProjectEuler.Benchmarks.PuzzleBenchmarks-report-full-compressed.json
tool: benchmarkdotnet
- name: Output summary
shell: pwsh
env:
REPO_NAME: ${{ steps.get-repo-name.outputs.repo-name }}
run: |
$summary = Get-Content -Path (Join-Path ${env:GITHUB_WORKSPACE} "BenchmarkDotNet.Artifacts" "results" "MartinCostello.ProjectEuler.Benchmarks.PuzzleBenchmarks-report-github.md") -Raw
$summary += "`n`n"
$summary += "View benchmark results history [here](https://benchmarks.martincostello.com/${env:REPO_NAME}?branch=${env:GITHUB_REF_NAME})."
$summary >> ${env:GITHUB_STEP_SUMMARY}