Skip to content

Commit 72c8e6d

Browse files
committed
Try windows benchmark execution
1 parent de621a5 commit 72c8e6d

2 files changed

Lines changed: 36 additions & 34 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,37 @@ jobs:
5656
- name: Test .NET 8.0
5757
run: dotnet test --no-build --verbosity normal -f net8.0
5858

59-
# benchmark-windows:
59+
benchmark-windows:
60+
61+
runs-on: windows-latest
62+
timeout-minutes: 420 #7 hours
63+
needs: build-windows
64+
if: ${{ github.ref == 'refs/heads/main' }}
65+
66+
steps:
67+
- uses: actions/checkout@v4
68+
- name: Setup .NET 6
69+
uses: actions/setup-dotnet@v4
70+
with:
71+
dotnet-version: 6.0.x
72+
- name: Setup .NET 8
73+
uses: actions/setup-dotnet@v4
74+
with:
75+
dotnet-version: 8.0.x
76+
- name: Restore dependencies
77+
run: dotnet restore
78+
- name: Build
79+
run: dotnet build --no-restore
80+
- name: Execute
81+
run: dotnet run -c Release -f net8.0 -- --runtimes net48 net6.0 net8.0 --filter *
82+
83+
#TODO process results
84+
85+
# benchmark-linux:
6086
#
61-
# runs-on: windows-latest
87+
# runs-on: ubuntu-latest
6288
# timeout-minutes: 360
63-
# needs: build-windows
89+
# needs: build-linux
6490
# if: ${{ github.ref == 'refs/heads/main' }}
6591
#
6692
# steps:
@@ -75,36 +101,12 @@ jobs:
75101
# dotnet-version: 8.0.x
76102
# - name: Restore dependencies
77103
# run: dotnet restore
78-
# - name: Build
79-
# run: dotnet build --no-restore
104+
# - name: Build .NET 6.0
105+
# run: dotnet build --no-restore -f net6.0
106+
# - name: Build .NET 8.0
107+
# run: dotnet build --no-restore -f net8.0
80108
# - name: Execute
81-
# run: dotnet run -c Release -f net8.0 -- --runtimes net48 net6.0 net8.0 --filter *
82-
83-
benchmark-linux:
84-
85-
runs-on: ubuntu-latest
86-
timeout-minutes: 360
87-
needs: build-linux
88-
if: ${{ github.ref == 'refs/heads/main' }}
89-
90-
steps:
91-
- uses: actions/checkout@v4
92-
- name: Setup .NET 6
93-
uses: actions/setup-dotnet@v4
94-
with:
95-
dotnet-version: 6.0.x
96-
- name: Setup .NET 8
97-
uses: actions/setup-dotnet@v4
98-
with:
99-
dotnet-version: 8.0.x
100-
- name: Restore dependencies
101-
run: dotnet restore
102-
- name: Build .NET 6.0
103-
run: dotnet build --no-restore -f net6.0
104-
- name: Build .NET 8.0
105-
run: dotnet build --no-restore -f net8.0
106-
- name: Execute
107-
working-directory: ./SerializersBenchmark
108-
run: dotnet run -c Release -f net8.0 -- --runtimes net6.0 net8.0 --filter *Benchmarks*
109+
# working-directory: ./SerializersBenchmark
110+
# run: dotnet run -c Release -f net8.0 -- --runtimes net6.0 net8.0 --filter *
109111

110112
#TODO process results

SerializersBenchmark/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public class Program
66
{
77
static void Main(string[] args)
88
{
9-
//dotnet run -c Release -f net8.0 -- --runtimes net48 net6.0 net8.0 --filter *Benchmarks*
9+
//dotnet run -c Release -f net8.0 -- --runtimes net48 net6.0 net8.0 --filter *
1010
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);
1111
}
1212
}

0 commit comments

Comments
 (0)