chore: Add generic linux target (#1164)

This commit is contained in:
Kamron Batman 2022-09-06 10:28:19 -07:00 committed by GitHub
parent 93c2c824dd
commit 5f91598c15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 9 deletions

View file

@ -28,7 +28,7 @@ jobs:
with:
dotnet-version: 6.0.400
- name: Build
run: ./publish.cmd
run: ./publish.cmd Release
- name: Test
run: dotnet test --no-restore
@ -56,6 +56,6 @@ jobs:
with:
dotnet-version: 6.0.400
- name: Build
run: ./publish.cmd
run: ./publish.cmd Release
- name: Test
run: dotnet test --no-restore

View file

@ -11,7 +11,7 @@
<PublicRelease>true</PublicRelease>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<NoWarn>NU1603</NoWarn>
<RuntimeIdentifiers>win-x64;debian.10-x64;debian.11-x64;ubuntu.16.04-x64;ubuntu.18.04-x64;ubuntu.20.04-x64;centos.7-x64;centos.8-x64;fedora.32-x64;fedora.33-x64;fedora.34-x64;fedora.35-x64;fedora.36-x64;rhel.7-x64;rhel.8-x64;linuxmint.17-x64;linuxmint.18-x64;linuxmint.19-x64;osx-x64</RuntimeIdentifiers>
<RuntimeIdentifiers>win-x64;osx-x64;linux-x64;debian.10-x64;debian.11-x64;ubuntu.16.04-x64;ubuntu.18.04-x64;ubuntu.20.04-x64;centos.7-x64;centos.8-x64;fedora.32-x64;fedora.33-x64;fedora.34-x64;fedora.35-x64;fedora.36-x64;rhel.7-x64;rhel.8-x64;linuxmint.17-x64;linuxmint.18-x64;linuxmint.19-x64</RuntimeIdentifiers>
<Configurations>Debug;Release;Analyze</Configurations>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

View file

@ -58,6 +58,7 @@ Rider 2022.2.2+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
- `centos.7`, `centos.8` - CentOS
- `fedora.32`, `fedora.33`, `fedora.34`, `fedora.35`, `fedora.36` - Fedora
- `rhel.7`, `rhel.8` - Redhat
- 'linux' - Other linux distros
- If blank, the operating system running the build is used. Linux Mint 20 is not supported directly yet, so build explicitly against `ubuntu.20.04` instead.
## Running the Server

View file

@ -20,7 +20,7 @@ jobs:
packageType: sdk
version: 6.0.400
- task: NuGetAuthenticate@0
- script: ./publish.cmd Release win
- script: ./publish.cmd Release
displayName: 'Build'
- script: dotnet test --no-restore
displayName: 'Test'
@ -30,16 +30,12 @@ jobs:
matrix:
'CentOS 8':
containerImage: centos:8
os: centos.8
'CentOS 7':
containerImage: centos:7
os: centos.7
'Debian 11':
containerImage: mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim
os: debian.11
'Ubuntu 20':
containerImage: mcr.microsoft.com/dotnet/sdk:6.0-focal
os: ubuntu.20.04
displayName: Linux
@ -55,7 +51,7 @@ jobs:
packageType: sdk
version: 6.0.400
- task: NuGetAuthenticate@0
- script: ./publish.cmd Release $(os)
- script: ./publish.cmd Release
displayName: 'Build'
- script: dotnet test --no-restore
displayName: 'Test'