File tree Expand file tree Collapse file tree 2 files changed +66
-40
lines changed Expand file tree Collapse file tree 2 files changed +66
-40
lines changed Original file line number Diff line number Diff line change
1
+ name : .NET
2
+
3
+ on :
4
+ push :
5
+ branches : [ "main" ]
6
+
7
+ jobs :
8
+ build :
9
+ name : Build with .NET 9
10
+
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - name : Install .NET 9
16
+ uses : actions/setup-dotnet@v4
17
+ with :
18
+ dotnet-version : 9.x
19
+ - name : Restore
20
+ run : dotnet restore
21
+ - name : Build
22
+ run : dotnet build --no-restore --configuration Release
23
+ - name : Upload
24
+ uses : actions/upload-artifact@v4
25
+ with :
26
+ name : build
27
+ path : |
28
+ **/bin/*
29
+ **/obj/*
30
+
31
+ benchmark :
32
+ name : Benchmark on ${{ matrix.os }}
33
+ needs : [build]
34
+
35
+ strategy :
36
+ matrix :
37
+ os : [ubuntu-latest, windows-latest, macos-latest]
38
+
39
+ runs-on : ${{ matrix.os }}
40
+
41
+ steps :
42
+ - uses : actions/checkout@v3
43
+ - name : Install .NET SDK
44
+ uses : actions/setup-dotnet@v2
45
+ with :
46
+ dotnet-version : |
47
+ 2.0.x
48
+ 2.1.x
49
+ 2.2.x
50
+ 3.0.x
51
+ 3.1.x
52
+ 5.x
53
+ 6.x
54
+ 7.x
55
+ 8.x
56
+ 9.x
57
+ - name : Download
58
+ uses : actions/download-artifact@v4
59
+ with :
60
+ name : build
61
+ path : .
62
+ merge-multiple : true
63
+ - name : Benchmark
64
+ working-directory : ./benchmarks/PolylineAlgorithm.Benchmarks
65
+ run : dotnet run -c Release -f net9.0 --runtimes netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 net5.0 net6.0 net7.0 net8.0 net9.0 --filter '*Benchmark*'
Original file line number Diff line number Diff line change 1
- # This workflow will build a .NET project
2
- # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3
-
4
1
name : .NET
5
2
6
3
on :
51
48
path : .
52
49
merge-multiple : true
53
50
- name : Test
54
- run : dotnet test --no-restore --no-build --configuration Release --verbosity normal
55
-
56
- benchmark :
57
- name : Benchmark on ${{ matrix.os }}
58
- needs : [build]
59
-
60
- strategy :
61
- matrix :
62
- os : [ubuntu-latest, windows-latest, macos-latest]
63
-
64
- runs-on : ${{ matrix.os }}
65
-
66
- steps :
67
- - uses : actions/checkout@v3
68
- - name : Install .NET SDK
69
- uses : actions/setup-dotnet@v2
70
- with :
71
- dotnet-version : |
72
- 2.0.x
73
- 2.1.x
74
- 2.2.x
75
- 3.0.x
76
- 3.1.x
77
- 5.x
78
- 6.x
79
- 7.x
80
- 8.x
81
- 9.x
82
- - name : Download Build Artifact
83
- uses : actions/download-artifact@v4
84
- with :
85
- name : build
86
- path : .
87
- merge-multiple : true
88
- - name : Benchmark
89
- working-directory : ./benchmarks/PolylineAlgorithm.Benchmarks
90
- run : dotnet run -c Release -f net9.0 --runtimes netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 net5.0 net6.0 net7.0 net8.0 net9.0 --filter '*Benchmark*'
51
+ run : dotnet test --no-restore --no-build --configuration Release --verbosity normal
You can’t perform that action at this time.
0 commit comments