File tree Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -31,26 +31,36 @@ jobs:
31
31
submodules : recursive
32
32
fetch-depth : 0
33
33
34
+ - name : ⚙ dotnet
35
+ uses : actions/setup-dotnet@v1
36
+ with :
37
+ dotnet-version : ' 6.0.x'
38
+
34
39
- name : ✓ ensure format
35
40
run : |
36
- dotnet tool update -g dotnet-format --version 5.0.*
37
41
dotnet restore
38
- dotnet format --check -v:diag
42
+ dotnet format --verify-no-changes -v:diag
39
43
40
44
build :
41
45
name : build-${{ matrix.os }}
42
46
needs : dotnet-format
43
47
runs-on : ${{ matrix.os }}
44
<
10000
code>48 strategy :
45
49
matrix :
46
- os : [ubuntu-latest, windows -latest, macOS-latest]
50
+ os : [windows-2022, ubuntu -latest, macOS-latest]
47
51
steps :
48
52
- name : 🤘 checkout
49
53
uses : actions/checkout@v2
50
54
with :
51
55
submodules : recursive
52
56
fetch-depth : 0
53
57
58
+ - name : ⚙ dotnet
59
+ uses : actions/setup-dotnet@v1
60
+ if : matrix.os != 'windows-2022'
61
+ with :
62
+ dotnet-version : ' 6.0.x'
63
+
54
64
- name : 🙏 build
55
65
run : dotnet build -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"
56
66
Original file line number Diff line number Diff line change 20
20
with :
21
21
submodules : recursive
22
22
fetch-depth : 0
23
-
23
+
24
+ - name : ⚙ dotnet
25
+ uses : actions/setup-dotnet@v1
26
+ with :
27
+ dotnet-version : ' 6.0.x'
28
+
24
29
- name : 🙏 build
25
30
run : dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v}
26
31
Original file line number Diff line number Diff line change 19
19
- name : 🏷 current
20
20
run : echo "CURRENT_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
21
21
22
+ - name : ⚙ dotnet
23
+ uses : actions/setup-dotnet@v1
24
+ with :
25
+ dotnet-version : ' 6.0.x'
26
+
22
27
- name : 🙏 build
23
28
run : dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v}
24
29
You can’t perform that action at this time.
0 commit comments