Merge branch 'remove-travis' of github.com:Pryaxis/TShock into remove-travis

This commit is contained in:
Lucas Nicodemus 2020-02-09 21:45:26 -08:00
commit e3301d04ef
No known key found for this signature in database
GPG key ID: A07BD9023D1664DB
2 changed files with 13 additions and 35 deletions

View file

@ -9,32 +9,32 @@ jobs:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Download MSBuild installer
run: powershell "$source = Get-Content -Path \"scripts\\SetupMSBuild.cs\" ; Add-Type
-TypeDefinition \"$source\" ; [SetupMSBuild]::Download((Get-Item -Path \".\\\").FullName);
"
- name: Setup .NET SDK
run: start /i /wait vs_BuildTools.exe --add "Microsoft.VisualStudio.Workload.ManagedDesktopBuildTools" -p --wait --installPath "%cd%\VSBuildTools" --norestart --nocache
- name: Install nuget
run: choco install nuget.commandline
- name: OTAPI Debug
shell: cmd
run: |
nuget.exe restore .\TerrariaServerAPI\TShock.4.OTAPI.sln
".\VSBuildTools\MSBuild\Current\Bin\MSBuild.exe" .\TerrariaServerAPI\TShock.4.OTAPI.sln /p:Configuration=Debug
nuget restore .\TerrariaServerAPI\TShock.4.OTAPI.sln
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" .\TerrariaServerAPI\TShock.4.OTAPI.sln /p:Configuration=Debug
cd .\TerrariaServerAPI\TShock.Modifications.Bootstrapper\bin\Debug
TShock.Modifications.Bootstrapper.exe
- name: OTAPI Release
shell: cmd
run: |
nuget.exe restore .\TerrariaServerAPI\TShock.4.OTAPI.sln
".\VSBuildTools\MSBuild\Current\Bin\MSBuild.exe" .\TerrariaServerAPI\TShock.4.OTAPI.sln /p:Configuration=Release
nuget restore .\TerrariaServerAPI\TShock.4.OTAPI.sln
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" .\TerrariaServerAPI\TShock.4.OTAPI.sln /p:Configuration=Release
cd .\TerrariaServerAPI\TShock.Modifications.Bootstrapper\bin\Release
TShock.Modifications.Bootstrapper.exe
- name: TerrariaServerAPI
shell: cmd
run: |
cd .\TerrariaServerAPI
"..\VSBuildTools\MSBuild\Current\Bin\MSBuild.exe" .\TerrariaServerAPI\TerrariaServerAPI.csproj /p:Configuration=Release
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" .\TerrariaServerAPI\TerrariaServerAPI.csproj /p:Configuration=Release
- name: TShock
shell: cmd
run: |
nuget.exe restore TShock.sln
".\VSBuildTools\MSBuild\Current\Bin\MSBuild.exe" .\TShockAPI\TShockAPI.csproj /p:Configuration=Release
nuget restore TShock.sln
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" .\TShockAPI\TShockAPI.csproj /p:Configuration=Release
- uses: actions/upload-artifact@master
with:
name: TShockRelease

View file

@ -1,22 +0,0 @@
using System;
public class SetupMSBuild
{
public static void Download(string directory)
{
try
{
var wc = new System.Net.WebClient();
var content = wc.DownloadString("https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16");
var url = System.Text.RegularExpressions.Regex.Match(content,
"https://download.visualstudio.microsoft.com/download/.*\\.exe").Value;
Console.WriteLine(url);
wc.DownloadFile(url, System.IO.Path.Combine(directory, "vs_BuildTools.exe"));
wc.DownloadFile("https://dist.nuget.org/win-x86-commandline/latest/nuget.exe", System.IO.Path.Combine(directory, "nuget.exe"));
}
catch (Exception e)
{
Console.WriteLine(e);
}
}
}