Probably speed up builds idk
This commit is contained in:
2
.github/workflows/build-test.yml
vendored
2
.github/workflows/build-test.yml
vendored
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user