Adds CentOS to the CI/CD (#302)

This commit is contained in:
Kamron Batman 2020-11-07 21:46:17 -08:00 committed by GitHub
parent 013f333898
commit 03f7398655
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 6 deletions

View file

@ -1,5 +1,3 @@
dotnet restore --force-evaluate
:<<"::SHELLSCRIPT"
@ECHO OFF
GOTO :CMDSCRIPT
@ -25,6 +23,13 @@ else
config="-c Release"
fi
if [[ $os == *'centos'* || $os == *'rhel'* ]]; then
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
fi
echo dotnet restore --force-evaluate
dotnet restore --force-evaluate
echo dotnet publish ${config} ${os} -f net5.0 --no-restore --self-contained=false -o Distribution Projects/Server/Server.csproj
dotnet publish ${config} ${os} -f net5.0 --no-restore --self-contained=false -o Distribution Projects/Server/Server.csproj
echo dotnet publish ${config} ${os} -f net5.0 --no-restore --self-contained=false -o Distribution/Assemblies Projects/UOContent/UOContent.csproj
@ -45,6 +50,9 @@ IF "%~2" == "" (
SET os=-r %~1-x64
)
echo dotnet restore --force-evaluate
dotnet restore --force-evaluate
echo dotnet publish %config% %os% -f net5.0 --no-restore --self-contained=false -o Distribution Projects\Server\Server.csproj
dotnet publish %config% %os% -f net5.0 --no-restore --self-contained=false -o Distribution Projects\Server\Server.csproj
echo dotnet publish %config% %os% -f net5.0 --no-restore --self-contained=false -o Distribution\Assemblies Projects\UOContent\UOContent.csproj