Skip to content

Commit d521444

Browse files
committed
Added benchmark action
1 parent b323646 commit d521444

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Benchmark
2+
3+
on: workflow_dispatch
4+
5+
defaults:
6+
run:
7+
working-directory: Src
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v4
18+
with:
19+
dotnet-version: 9.0.x
20+
21+
- name: Restore dependencies
22+
run: dotnet restore
23+
24+
- name: Build
25+
run: dotnet build --no-restore
26+
27+
- name: Run benchmark (net9.0)
28+
run: dotnet run bench --framework net9.0 --configuration Release
29+
working-directory: Src/UUIDNext.Benchmarks

0 commit comments

Comments
 (0)