Probably speed up builds idk

This commit is contained in:
Pieter-Jan Briers
2021-03-04 02:50:37 +01:00
parent 0adb00f6c3
commit cbe354b263
3 changed files with 7 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: dotnet restore run: dotnet restore
- name: Build - name: Build
run: dotnet build --configuration Release --no-restore /p:WarningsAsErrors=nullable run: dotnet build --configuration Release --no-restore /p:WarningsAsErrors=nullable /m
- name: Content.Tests - name: Content.Tests
run: dotnet test --no-build Content.Tests/Content.Tests.csproj -v n run: dotnet test --no-build Content.Tests/Content.Tests.csproj -v n
- name: Content.IntegrationTests - name: Content.IntegrationTests

View File

@@ -92,7 +92,8 @@ def build(skip_build: bool) -> None:
"--nologo", "--nologo",
"/v:m", "/v:m",
"/t:Rebuild", "/t:Rebuild",
"/p:FullRelease=True" "/p:FullRelease=True",
"/m"
], check=True) ], check=True)
print(Fore.GREEN + "Packaging client..." + Style.RESET_ALL) print(Fore.GREEN + "Packaging client..." + Style.RESET_ALL)

View File

@@ -125,7 +125,8 @@ def build_platform(platform: PlatformReg, skip_build: bool) -> None:
"/v:m", "/v:m",
f"/p:TargetOS={platform.target_os}", f"/p:TargetOS={platform.target_os}",
"/t:Rebuild", "/t:Rebuild",
"/p:FullRelease=True" "/p:FullRelease=True",
"/m"
], check=True) ], check=True)
publish_client_server(platform.rid, platform.target_os) publish_client_server(platform.rid, platform.target_os)
@@ -147,7 +148,8 @@ def publish_client_server(runtime: str, target_os: str) -> None:
"--no-self-contained", "--no-self-contained",
"-c", "Release", "-c", "Release",
f"/p:TargetOS={target_os}", f"/p:TargetOS={target_os}",
"/p:FullRelease=True" "/p:FullRelease=True",
"/m"
] ]
subprocess.run(base + ["RobustToolbox/Robust.Server/Robust.Server.csproj"], check=True) subprocess.run(base + ["RobustToolbox/Robust.Server/Robust.Server.csproj"], check=True)