Skip to content

Commit add1540

Browse files
committed
update CI for net9.0
1 parent ac99ba3 commit add1540

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/dotnet.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: Setup .NET
17-
uses: actions/setup-dotnet@v3
17+
uses: actions/setup-dotnet@v4
1818
with:
19-
dotnet-version: 6.0.x
20-
- name: Restore dependencies
21-
run: dotnet restore
19+
dotnet-version: 9.0.x
20+
- name: Info
21+
run: |
22+
dotnet tool update -g dotnet-execute
23+
export PATH="$PATH:$HOME/.dotnet/tools"
24+
dotnet-exec info
2225
- name: Build
23-
run: dotnet build --no-restore
26+
run: dotnet build

azure-pipelines.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,13 @@ steps:
2929
displayName: 'Use .NET sdk'
3030
inputs:
3131
packageType: sdk
32-
version: 8.0.x
32+
version: 9.0.x
3333
includePreviewVersions: true
3434

35-
- script: dotnet --info
35+
- script: |
36+
dotnet tool update -g dotnet-execute
37+
export PATH="$PATH:$HOME/.dotnet/tools"
38+
dotnet-exec info
3639
displayName: 'dotnet info'
3740

3841
- script: dotnet build -c Release

0 commit comments

Comments
 (0)