mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2026-07-31 07:20:04 +00:00
Avoid windows build-dir lock by using per-version build folders
This commit is contained in:
committed by
GitHub
parent
0639bf2ae8
commit
e9e5ec2fd6
9
.github/workflows/check-builds.yaml
vendored
9
.github/workflows/check-builds.yaml
vendored
@@ -84,11 +84,8 @@ jobs:
|
|||||||
Invoke-Expression "vcpkg integrate install"
|
Invoke-Expression "vcpkg integrate install"
|
||||||
|
|
||||||
foreach ($version in $versions) {
|
foreach ($version in $versions) {
|
||||||
if (Test-Path -LiteralPath "build") {
|
$buildDir = "build-$version"
|
||||||
Remove-Item "build" -Recurse
|
Invoke-Expression "cmake -B $buildDir -DPROTOCOL_VERSION=$version -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake"
|
||||||
Write-Output "Deleted existing build folder"
|
|
||||||
}
|
|
||||||
Invoke-Expression "cmake -B build -DPROTOCOL_VERSION=$version -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake"
|
|
||||||
if ($LASTEXITCODE -ne "0") {
|
if ($LASTEXITCODE -ne "0") {
|
||||||
Write-Error "cmake generation failed for version $version" -ErrorAction Stop
|
Write-Error "cmake generation failed for version $version" -ErrorAction Stop
|
||||||
}
|
}
|
||||||
@@ -96,7 +93,7 @@ jobs:
|
|||||||
|
|
||||||
foreach ($configuration in $configurations) {
|
foreach ($configuration in $configurations) {
|
||||||
Write-Output "Building version $version $configuration"
|
Write-Output "Building version $version $configuration"
|
||||||
Invoke-Expression "msbuild build\OpenFusion.sln /maxcpucount:8 /nodeReuse:false /p:BuildInParallel=true /p:CL_MPCount=8 /p:UseMultiToolTask=true /p:Configuration=$configuration"
|
Invoke-Expression "msbuild $buildDir\OpenFusion.sln /maxcpucount:8 /nodeReuse:false /p:BuildInParallel=true /p:CL_MPCount=8 /p:UseMultiToolTask=true /p:Configuration=$configuration"
|
||||||
if ($LASTEXITCODE -ne "0") {
|
if ($LASTEXITCODE -ne "0") {
|
||||||
Write-Error "msbuild build failed for version $version" -ErrorAction Stop
|
Write-Error "msbuild build failed for version $version" -ErrorAction Stop
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user