-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
55 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: benchmark | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
deployments: write | ||
contents: write | ||
|
||
env: | ||
DOTNET_NOLOGO: true | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
|
||
jobs: | ||
benchmark: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: π§ Checkout | ||
uses: actions/checkout@main | ||
|
||
- name: π¨ Setup dotnet | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
global-json-file: ./global.json | ||
|
||
- name: π¨ List benchmarks | ||
id: list-benchmarks | ||
run: | | ||
dotnet run \ | ||
--project ./Benchmarks.App/Benchmarks.App.csproj \ | ||
--configuration Release \ | ||
list | ||
- name: β Run benchmarks | ||
id: run-benchmarks | ||
run: | | ||
dotnet run \ | ||
--project ./Benchmarks.App/Benchmarks.App.csproj \ | ||
--configuration Release \ | ||
workflow | ||
- name: π Store benchmark results | ||
id: store-benchmarks | ||
if: ${{ github.event_name == 'push' }} | ||
uses: benchmark-action/[email protected] | ||
with: | ||
name: Benchmarks | ||
tool: benchmarkdotnet | ||
output-file-path: BenchmarkDotNet.Artifacts/results/Benchmarks.json | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
auto-push: true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build and Benchmark | ||
name: build | ||
|
||
on: | ||
push: | ||
|
@@ -30,42 +30,3 @@ jobs: | |
- name: π¨ Run dotnet format | ||
id: format | ||
run: dotnet format --verbosity diagnostic --verify-no-changes --no-restore | ||
|
||
benchmark: | ||
needs: [ build ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: π§ Checkout | ||
uses: actions/checkout@main | ||
|
||
- name: π¨ Setup dotnet | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
global-json-file: ./global.json | ||
|
||
- name: π¨ List benchmarks | ||
id: list-benchmarks | ||
run: | | ||
dotnet run \ | ||
--project ./Benchmarks.App/Benchmarks.App.csproj \ | ||
--configuration Release \ | ||
list | ||
- name: β Run benchmarks | ||
id: run-benchmarks | ||
run: | | ||
dotnet run \ | ||
--project ./Benchmarks.App/Benchmarks.App.csproj \ | ||
--configuration Release \ | ||
workflow | ||
- name: π Store benchmark results | ||
id: store-benchmarks | ||
if: ${{ github.event_name == 'push' }} | ||
uses: benchmark-action/[email protected] | ||
with: | ||
name: Benchmarks | ||
tool: benchmarkdotnet | ||
output-file-path: BenchmarkDotNet.Artifacts/results/Benchmarks.json | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
auto-push: true |