Skip to content

Update .NET SDK to 9.0.100-rc.2.24466.31 (#1709) #126

Update .NET SDK to 9.0.100-rc.2.24466.31 (#1709)

Update .NET SDK to 9.0.100-rc.2.24466.31 (#1709) #126

Workflow file for this run

name: benchmark
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup .NET SDK
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1
- name: Setup Node
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: '20'
- name: Run benchmarks
shell: pwsh
run: ./benchmark.ps1
- name: Publish BenchmarkDotNet artifacts
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
if: ${{ !cancelled() }}
with:
name: artifacts
path: ./BenchmarkDotNet.Artifacts/results/*
if-no-files-found: error
- 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: martincostello/benchmarkdotnet-results-publisher@2090db9dca99a23ff464351db28aa6c6bf1a4746 # v1.0.1
with:
branch: ${{ github.ref_name }}
comment-on-threshold: true
name: Costellobot
output-file-path: '${{ steps.get-repo-name.outputs.repo-name }}/data.json'
repo: '${{ github.repository_owner }}/benchmarks'
repo-token: ${{ secrets.BENCHMARKS_TOKEN }}
- name: Output summary
shell: pwsh
env:
REPO_NAME: ${{ steps.get-repo-name.outputs.repo-name }}
run: |
$summary += "`n`n"
$summary += "View benchmark results history [here](https://benchmarks.martincostello.com/?repo=${env:REPO_NAME}&branch=${env:GITHUB_REF_NAME})."
$summary >> ${env:GITHUB_STEP_SUMMARY}