15
15
- " **/*.md"
16
16
17
17
workflow_dispatch :
18
-
18
+
19
19
jobs :
20
20
build-on-windows :
21
21
runs-on : windows-latest
22
22
23
23
steps :
24
-
25
24
- uses : actions/checkout@v3
26
25
27
26
- name : Setup .NET
28
- uses : actions/setup-dotnet@v2
27
+ uses : actions/setup-dotnet@v4
29
28
with :
30
- dotnet-version : ' 6.0.x'
31
- include-prerelease : false
29
+ dotnet-version : " 8.0.x"
30
+
31
+ - name : Test
32
+ working-directory : " Common.Algorithm.Core.Test"
33
+ run : |
34
+ dotnet test
32
35
33
- - name : Build Interop
36
+ - name : Build
37
+ working-directory : " Common.Algorithm.Core"
34
38
run : |
35
- cd "Common.Algorithm.Interop"
36
39
dotnet build -c Release
37
40
38
41
build-on-ubuntu :
39
42
runs-on : ubuntu-latest
40
43
41
44
steps :
42
-
43
45
- uses : actions/checkout@v3
44
46
45
47
- name : Setup .NET
46
- uses : actions/setup-dotnet@v2
48
+ uses : actions/setup-dotnet@v4
47
49
with :
48
- dotnet-version : ' 6.0.x'
49
- include-prerelease : false
50
+ dotnet-version : " 8.0.x"
51
+
52
+ - name : Test
53
+ working-directory : " Common.Algorithm.Core.Test"
54
+ run : |
55
+ dotnet test
50
56
51
- - name : Build Interop
57
+ - name : Build
58
+ working-directory : " Common.Algorithm.Core"
52
59
run : |
53
- cd "Common.Algorithm.Interop"
54
60
dotnet build -c Release
55
61
56
62
- name : Add to GitHub Repo
@@ -60,29 +66,30 @@ jobs:
60
66
- name : Install NuGet
61
67
uses : nuget/setup-nuget@v1
62
68
with :
63
- nuget-version : ' 6.x'
69
+ nuget-version : " 6.x"
64
70
65
71
- name : Publish Package to GitHub and NuGet
66
72
run : |
67
- nuget push ./Common.Algorithm.Interop /bin/Release/*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -ApiKey ${{ secrets.NugetKey }} -NoSymbol
68
- nuget push ./Common.Algorithm.Interop /bin/Release/*.nupkg -Source github -SkipDuplicate
73
+ nuget push ./Common.Algorithm.Core /bin/Release/*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -ApiKey ${{ secrets.NugetKey }} -NoSymbol
74
+ nuget push ./Common.Algorithm.Core /bin/Release/*.nupkg -Source github -SkipDuplicate
69
75
70
76
build-on-macos :
71
77
runs-on : macos-latest
72
78
73
79
steps :
74
-
75
80
- uses : actions/checkout@v3
76
81
77
82
- name : Setup .NET
78
- uses : actions/setup-dotnet@v2
83
+ uses : actions/setup-dotnet@v4
79
84
with :
80
- dotnet-version : ' 6.0.x'
81
- include-prerelease : false
85
+ dotnet-version : " 8.0.x"
82
86
83
- - name : Build Interop
87
+ - name : Test
88
+ working-directory : " Common.Algorithm.Core.Test"
84
89
run : |
85
- cd "Common.Algorithm.Interop"
86
- dotnet build -c Release
87
-
90
+ dotnet test
88
91
92
+ - name : Build
93
+ working-directory : " Common.Algorithm.Core"
94
+ run : |
95
+ dotnet build -c Release
0 commit comments