obsolete several child elements removed in Office 2015 (#1905) #41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Benchmarks | |
| on: | |
| push: | |
| branches: [ main, release/* ] | |
| paths-ignore: | |
| - 'docs/**' | |
| - '**.md' | |
| pull_request: | |
| # The branches below must be a subset of the branches above | |
| branches: [ main ] | |
| paths-ignore: | |
| - 'docs/**' | |
| - '**.md' | |
| permissions: | |
| contents: write | |
| deployments: write | |
| jobs: | |
| benchmark: | |
| name: Run | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-dotnet@v4 | |
| - name: Build benchmarks | |
| run: cd test/DocumentFormat.OpenXml.Benchmarks; dotnet build -c RELEASE | |
| shell: pwsh | |
| - name: Run benchmarks | |
| run: cd test/DocumentFormat.OpenXml.Benchmarks; dotnet run -c RELEASE -f net8.0 | |
| shell: pwsh | |
| - name: Write summary | |
| shell: pwsh | |
| run: | | |
| $files = gci test/DocumentFormat.OpenXml.Benchmarks/BenchmarkDotNet.Artifacts/results/*-report-github.md | |
| foreach ($file in $files){ | |
| $name = $file.Name.Replace("-report-github.md", "").Replace("DocumentFormat.OpenXml.Benchmarks.", "") | |
| "## $name" >> $env:GITHUB_STEP_SUMMARY | |
| gc $file >> $env:GITHUB_STEP_SUMMARY | |
| } |