Skip to content

Commit 1da5537

Browse files
committed
fix Benchmark
1 parent 2f6a528 commit 1da5537

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/workflows/continous-benchmark.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,18 @@ jobs:
1313
working-directory: ./src
1414

1515
steps:
16-
- uses: actions/checkout@v2
17-
- name: Setup .NET Core
18-
uses: actions/setup-dotnet@v1
16+
- uses: actions/checkout@v4
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v4
1919
with:
2020
dotnet-version: |
21-
3.1.x
22-
5.0.x
23-
6.0.x
24-
7.0.x
21+
8.0.x
2522
# Run benchmark with `go test -bench` and stores the output to a file
2623
- name: Run benchmark
27-
run: dotnet run --project ./GeoJSON.Text.Test.Benchmark/GeoJSON.Text.Test.Benchmark.csproj --framework net6 --runtimes net60 -c Release -- --job medium -f *SerializeAndDeserialize*
24+
run: dotnet run --project ./GeoJSON.Text.Test.Benchmark/GeoJSON.Text.Test.Benchmark.csproj -c Release -- --job medium -f *SerializeAndDeserialize*
2825
# Download previous benchmark result from cache (if exists)
2926
- name: Download previous benchmark data
30-
uses: actions/cache@v1
27+
uses: actions/cache@v4
3128
with:
3229
path: ./cache
3330
key: ${{ runner.os }}-benchmark

src/GeoJSON.Text.Test.Benchmark/GeoJSON.Text.Test.Benchmark.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<OutputType>Exe</OutputType>
56
<ImplicitUsings>disable</ImplicitUsings>
67
<Nullable>enable</Nullable>
78
<SignAssembly>False</SignAssembly>

0 commit comments

Comments
 (0)