From 1e3d6f15f56c5d005e6733e286e36dd165f6e7e1 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Thu, 16 Nov 2023 11:27:40 -0800 Subject: [PATCH 1/3] tests: Add /MP to AppVeyor builds to try to reduce build time --- tests/autotest-appveyor.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/autotest-appveyor.ps1 b/tests/autotest-appveyor.ps1 index 24736ef..26d8e81 100644 --- a/tests/autotest-appveyor.ps1 +++ b/tests/autotest-appveyor.ps1 @@ -45,7 +45,7 @@ foreach ($vs in $args) Add-AppveyorTest $target -Outcome Running Write-Output "# Building $target.exe" - & cmd /c "cl.exe /Fe$target.exe /EHsc /W4 /WX $deflist $sources 2>&1" | Tee-Object -Variable buildOutput + & cmd /c "cl.exe /MP /Fe$target.exe /EHsc /W4 /WX $deflist $sources 2>&1" | Tee-Object -Variable buildOutput if ($?) { From d99aa003ba28f847fd6d9d3ef3490721e4e13ba0 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Thu, 16 Nov 2023 12:09:18 -0800 Subject: [PATCH 2/3] Restrict AppVeyor builds to master branch This avoids duplicate builds on PRs submitted from a branch in the same repository. --- appveyor.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 2f2c0e6..324d1d9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,3 +1,7 @@ +branches: + only: + - master + image: - Visual Studio 2022 - Visual Studio 2019 From cd420ab193c15fa318f018a52e0405cb851e3d94 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Thu, 16 Nov 2023 12:12:56 -0800 Subject: [PATCH 3/3] Use make -j2 for mingw builds on AppVeyor --- appveyor.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 324d1d9..9b46193 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -22,8 +22,8 @@ test_script: - ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2017") { .\tests\autotest-appveyor.ps1 15 } - ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2019") { .\tests\autotest-appveyor.ps1 19 } - ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2022") { .\tests\autotest-appveyor.ps1 22 } - - ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015") { & C:\cygwin\bin\bash.exe -c "PATH=/usr/bin:/usr/local/bin:$PATH; make config=coverage test && bash <(curl -s https://codecov.io/bash) -f pugixml.cpp.gcov 2>&1" } - - ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015") { & C:\cygwin\bin\bash.exe -c "PATH=/usr/bin:/usr/local/bin:$PATH; make config=coverage defines=PUGIXML_WCHAR_MODE test && bash <(curl -s https://codecov.io/bash) -f pugixml.cpp.gcov 2>&1" } + - ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015") { & C:\cygwin\bin\bash.exe -c "PATH=/usr/bin:/usr/local/bin:$PATH; make -j2 config=coverage test && bash <(curl -s https://codecov.io/bash) -f pugixml.cpp.gcov 2>&1" } + - ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015") { & C:\cygwin\bin\bash.exe -c "PATH=/usr/bin:/usr/local/bin:$PATH; make -j2 config=coverage defines=PUGIXML_WCHAR_MODE test && bash <(curl -s https://codecov.io/bash) -f pugixml.cpp.gcov 2>&1" } artifacts: - path: .\scripts\*.nupkg