-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.42 KB
/
Copy pathbenchmarks.yml
File metadata and controls
51 lines (43 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Benchmarks
on:
workflow_dispatch:
inputs:
run_benchmarks:
description: Run benchmark measurements after building
required: true
default: "false"
type: choice
options:
- "false"
- "true"
framework:
description: Target framework for benchmark execution
required: true
default: net8.0
type: choice
options:
- net8.0
- net10.0
permissions:
contents: read
jobs:
benchmarks:
name: Benchmarks
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
10.0.302
- name: Restore
run: dotnet restore benchmarks/Dapper.TypedParameters.SqlServer.Benchmarks/Dapper.TypedParameters.SqlServer.Benchmarks.csproj
- name: Build
run: dotnet build benchmarks/Dapper.TypedParameters.SqlServer.Benchmarks/Dapper.TypedParameters.SqlServer.Benchmarks.csproj --configuration Release --no-restore
- name: Run benchmarks
if: ${{ inputs.run_benchmarks == 'true' }}
run: dotnet run --project benchmarks/Dapper.TypedParameters.SqlServer.Benchmarks/Dapper.TypedParameters.SqlServer.Benchmarks.csproj --configuration Release --framework ${{ inputs.framework }} -- --filter '*'