File tree 3 files changed +29
-8
lines changed
3 files changed +29
-8
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ branches:
68
68
required_pull_request_reviews : null
69
69
required_status_checks :
70
70
strict : false
71
- contexts : ['Build & Test']
71
+ contexts : ['Build & Test (Windows)', 'Build, Test & Pack (Linux) ']
72
72
enforce_admins : false
73
73
required_linear_history : false
74
74
restrictions : null
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ permissions:
13
13
jobs :
14
14
automerge :
15
15
name : Enable auto-merge
16
- runs-on : ubuntu-22 .04
16
+ runs-on : ubuntu-24 .04
17
17
if : github.actor == 'phnx47-bot' && contains(github.event.pull_request.labels.*.name, 'sync')
18
18
steps :
19
19
- name : Checkout
Original file line number Diff line number Diff line change 12
12
workflow_dispatch :
13
13
14
14
jobs :
15
- build :
16
- name : Build & Test
15
+ build-windows :
16
+ name : Build & Test (Windows)
17
+ runs-on : windows-2022
18
+ steps :
19
+ - name : Checkout
20
+ uses : actions/checkout@v4
21
+
22
+ - name : Setup .NET
23
+ uses : actions/setup-dotnet@v4
24
+ with :
25
+ dotnet-version : |
26
+ 2.1.x
27
+ 3.1.x
28
+ 5.0.x
29
+ 6.0.x
30
+ 7.0.x
31
+ 8.0.x
32
+
33
+ - name : Run tests
34
+ run : dotnet test -c Release -p:CollectCoverage=false
35
+
36
+ build-linux :
37
+ name : Build, Test & Pack (Linux)
17
38
runs-on : ubuntu-22.04
18
39
steps :
19
40
- name : Checkout
73
94
74
95
github :
75
96
name : Deploy to GitHub
76
- needs : [build]
97
+ needs : [build-windows, build-linux ]
77
98
if : github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
78
- runs-on : ubuntu-22 .04
99
+ runs-on : ubuntu-24 .04
79
100
steps :
80
101
- name : Download artifacts
81
102
uses : actions/download-artifact@v4
86
107
87
108
nuget :
88
109
name : Deploy to NuGet
89
- needs : [build]
110
+ needs : [build-windows, build-linux ]
90
111
if : startsWith(github.ref, 'refs/tags/v')
91
- runs-on : ubuntu-22 .04
112
+ runs-on : ubuntu-24 .04
92
113
steps :
93
114
- name : Download artifacts
94
115
uses : actions/download-artifact@v4
You can’t perform that action at this time.
0 commit comments