Skip to content

OpenCCSharp Benchmark #44

OpenCCSharp Benchmark

OpenCCSharp Benchmark #44

Workflow file for this run

name: OpenCCSharp Benchmark
on:
push:
branches:
- main
paths-ignore:
- "*.md"
- "*.txt"
pull_request:
branches:
- main
paths-ignore:
- "*.md"
- "*.txt"
schedule:
- cron: "17 0 1 * *"
jobs:
benchmark:
name: "Benchmark ${{ matrix.os }} / ${{ matrix.config }}"
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
config: ["Release"]
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
OCCS_IS_CI_BUILD: true
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-dotnet@v1
with:
dotnet-version: |
6.0.x
8.0.x
include-prerelease: true
- name: Build
shell: pwsh
run: "./OpenCCSharp.Commons/CI/Build.ps1 -Configuration ${{ matrix.config }}"
- name: Benchmark
shell: pwsh
run: "./OpenCCSharp.Commons/CI/Benchmark.ps1 -Configuration ${{ matrix.config }}"
- name: Benchmark report
if: always()
shell: pwsh
run: "./OpenCCSharp.Commons/CI/BenchmarkReport.ps1"
- name: Upload benchmark result
if: always()
uses: actions/upload-artifact@v2
with:
name: "OpenCCSharp.Benchmark-${{ matrix.os }}-${{ matrix.config }}"
path: ./BenchmarkDotNet.Artifacts