use multithreading to compile on all systems including in tests but for real

pull/317/head
DJLevel3 2025-08-18 13:38:59 -06:00
rodzic dfd4e46213
commit af3ba99507
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -28,7 +28,7 @@ fi
# Build linux version
if [ "$OS" = "linux" ]; then
cd "$ROOT/Builds/$PLUGIN/LinuxMakefile"
make -J$(nproc) CONFIG=Release
make -j$(nproc) CONFIG=Release
cp -r ./build/$PLUGIN.vst3 "$ROOT/ci/bin/$PLUGIN.vst3"
cp -r ./build/$PLUGIN "$ROOT/ci/bin/$PLUGIN"
@ -47,7 +47,7 @@ if [ "$OS" = "win" ]; then
eval "$($(cygpath "$COMSPEC") /c$(cygpath -w "$ROOT/ci/vcvars_export.bat"))"
cd "$ROOT/Builds/$PLUGIN/VisualStudio2022"
msbuild.exe "$PLUGIN.sln" "//p:VisualStudioVersion=16.0" "//m" "//t:Build" "//p:Configuration=Release" "//p:Platform=x64" "//p:PreferredToolArchitecture=x64" "//restore" "//p:RestorePackagesConfig=true" -maxcpucount
msbuild.exe "//m" "$PLUGIN.sln" "//p:VisualStudioVersion=16.0" "//p:MultiProcessorCompilation=true" "//t:Build" "//p:Configuration=Release" "//p:Platform=x64" "//p:PreferredToolArchitecture=x64" "//restore" "//p:RestorePackagesConfig=true"
cp "$ROOT/Builds/$PLUGIN/VisualStudio2022/x64/Release/Standalone Plugin/$PLUGIN.pdb" "$ROOT/bin/$OUTPUT_NAME.pdb"
fi

Wyświetl plik

@ -20,7 +20,7 @@ fi
# Build linux version
if [ "$OS" = "linux" ]; then
cd "$ROOT/Builds/Test/LinuxMakefile"
make -J$(nproc) CONFIG=Release
make -j$(nproc) CONFIG=Release
cd build
echo "Running the test"
@ -36,7 +36,7 @@ if [ "$OS" = "win" ]; then
echo $MSBUILD_EXE
cd "$ROOT/Builds/Test/VisualStudio2022"
"$MSBUILD_EXE" "$PLUGIN.sln" "//p:VisualStudioVersion=16.0" "//m" "//t:Build" "//p:Configuration=Release" "//p:Platform=x64" "//p:PreferredToolArchitecture=x64" -maxcpucount
"$MSBUILD_EXE" "//m" "$PLUGIN.sln" "//p:MultiProcessorCompilation=true" "//p:VisualStudioVersion=16.0" "//m" "//t:Build" "//p:Configuration=Release" "//p:Platform=x64" "//p:PreferredToolArchitecture=x64"
cd "x64/Release/ConsoleApp"
echo "Running the test"