Skip to content

Commit 89ef50e

Browse files
committed
Create workflow to build benchmarks
Ensures the NetOffice Benchmarks project can be built. We are not running benchmarks are take too long to finish.
1 parent f2296d0 commit 89ef50e

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)