Skip to content

Commit 9006f9a

Browse files
committed
Create workflow to run benchmarks
1 parent b4e22b4 commit 9006f9a

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/benchmarks.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: benchmarks
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request_target:
6+
push:
7+
8+
permissions:
9+
contents: read
10+
11+
env:
12+
DOTNET_NOLOGO: 1
13+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
14+
DOTNET_GENERATE_ASPNET_CERTIFICATE: 0
15+
ContinuousIntegrationBuild: true
16+
RestoreLockedMode: true
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
22+
strategy:
23+
matrix:
24+
configuration: [Debug, Release]
25+
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v5
29+
30+
- name: Setup dotnet
31+
uses: actions/setup-dotnet@v5
32+
with:
33+
dotnet-version: |
34+
8
35+
10
36+
37+
- name: Setup MSBuild
38+
uses: microsoft/setup-msbuild@v2
39+
40+
- name: Build benchmarks
41+
id: build
42+
run: dotnet build --project ./Tests/NetOffice.Benchmarks.csproj -c '${{ matrix.configuration }}'

0 commit comments

Comments
 (0)