8000 Now that .NET6 is LTS, ensure it's installed · devlooped/oss@7ebebbd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 7ebebbd

Browse files
committed
Now that .NET6 is LTS, ensure it's installed
1 parent 3b9f317 commit 7ebebbd

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,36 @@ jobs:
3131
submodules: recursive
3232
fetch-depth: 0
3333

34+
- name: ⚙ dotnet
35+
uses: actions/setup-dotnet@v1
36+
with:
37+
dotnet-version: '6.0.x'
38+
3439
- name: ✓ ensure format
3540
run: |
36-
dotnet tool update -g dotnet-format --version 5.0.*
3741
dotnet restore
38-
dotnet format --check -v:diag
42+
dotnet format --verify-no-changes -v:diag
3943
4044
build:
4145
name: build-${{ matrix.os }}
4246
needs: dotnet-format
4347
runs-on: ${{ matrix.os }}
44< 10000 code>48
strategy:
4549
matrix:
46-
os: [ubuntu-latest, windows-latest, macOS-latest]
50+
os: [windows-2022, ubuntu-latest, macOS-latest]
4751
steps:
4852
- name: 🤘 checkout
4953
uses: actions/checkout@v2
5054
with:
5155
submodules: recursive
5256
fetch-depth: 0
5357

58+
- name: ⚙ dotnet
59+
uses: actions/setup-dotnet@v1
60+
if: matrix.os != 'windows-2022'
61+
with:
62+
dotnet-version: '6.0.x'
63+
5464
- name: 🙏 build
5565
run: dotnet build -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"
5666

.github/workflows/publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ jobs:
2020
with:
2121
submodules: recursive
2222
fetch-depth: 0
23-
23+
24+
- name: ⚙ dotnet
25+
uses: actions/setup-dotnet@v1
26+
with:
27+
dotnet-version: '6.0.x'
28+
2429
- name: 🙏 build
2530
run: dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v}
2631

.github/workflows/release-artifacts.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
- name: 🏷 current
2020
run: echo "CURRENT_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
2121

22+
- name: ⚙ dotnet
23+
uses: actions/setup-dotnet@v1
24+
with:
25+
dotnet-version: '6.0.x'
26+
2227
- name: 🙏 build
2328
run: dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v}
2429

0 commit comments

Comments
 (0)
0