Adds official .NET 5 support (#300)
This commit is contained in:
parent
c3289a20ab
commit
013f333898
39 changed files with 496 additions and 668 deletions
|
|
@ -19,15 +19,15 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
||||
- name: Setup .NET Core
|
||||
- name: Setup .NET 5
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 3.1.401
|
||||
dotnet-version: 5.0.100-rc.2.20479.15
|
||||
- name: Restore NuGet Packages
|
||||
run: dotnet restore --force-evaluate
|
||||
- name: Build Server
|
||||
run: dotnet build -c Release -f netcoreapp3.1 --no-restore Projects/Server/Server.csproj
|
||||
run: dotnet build -c Release -f net5.0 --no-restore Projects/Server/Server.csproj
|
||||
- name: Build UO Content
|
||||
run: dotnet build -c Release -f netcoreapp3.1 --no-restore Projects/UOContent/UOContent.csproj
|
||||
run: dotnet build -c Release -f net5.0 --no-restore Projects/UOContent/UOContent.csproj
|
||||
- name: Test
|
||||
run: dotnet test --no-restore -f netcoreapp3.1
|
||||
run: dotnet test --no-restore -f net5.0
|
||||
10
.github/workflows/create-release.yml
vendored
10
.github/workflows/create-release.yml
vendored
|
|
@ -14,10 +14,10 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
||||
- name: Setup .NET Core
|
||||
- name: Setup .NET 5
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 3.1.401
|
||||
dotnet-version: 5.0.100-rc.2.20479.15
|
||||
- uses: dotnet/nbgv@master
|
||||
id: nbgv
|
||||
- name: Create Release
|
||||
|
|
@ -50,10 +50,10 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
||||
- name: Setup .NET Core
|
||||
- name: Setup .NET 5
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 3.1.401
|
||||
dotnet-version: 5.0.100-rc.2.20479.15
|
||||
- uses: dotnet/nbgv@master
|
||||
id: nbgv
|
||||
- name: Load Release URL File from release job
|
||||
|
|
@ -67,7 +67,7 @@ jobs:
|
|||
echo ::set-output name=upload_url::$value
|
||||
rm -rf ./release_url
|
||||
- name: Publish Distribution
|
||||
run: ./publish.cmd ${{ matrix.os }} core Release
|
||||
run: ./publish.cmd release ${{ matrix.os }}
|
||||
- name: Create Artifact
|
||||
run: rm -rf ./Projects/*/bin && rm -rf ./Projects/*/obj && zip -9 -r modernuo-asset.zip ./*
|
||||
- name: Upload Release
|
||||
|
|
|
|||
4
.github/workflows/sonar-cloud.yml
vendored
4
.github/workflows/sonar-cloud.yml
vendored
|
|
@ -41,5 +41,5 @@ jobs:
|
|||
shell: powershell
|
||||
run: |
|
||||
.\.sonar\scanner\dotnet-sonarscanner begin /k:"modernuo_ModernUO" /o:"modernuo" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
|
||||
.\publish.cmd win core Release
|
||||
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
|
||||
.\publish.cmd release win
|
||||
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue