From 16d0880bd15230db8a005cc967e821336c4b7afd Mon Sep 17 00:00:00 2001 From: Margen67 Date: Thu, 5 Mar 2020 19:17:18 -0800 Subject: [PATCH] AppVeyor: Minor changes Add yml validater to top. Skip files unrelated to build. Reformat comments. Only build Release since Azure Pipelines already builds Debug and is faster. Remove cmd since it's the default shell, and unneeded characters. --- .appveyor.yml | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index c83642f89..50649ff8e 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,38 +1,43 @@ # Documentation is here: https://www.appveyor.com/docs/appveyor-yml/ +# You can validate ymls here: https://ci.appveyor.com/tools/validate-yaml skip_commits: files: + - doc/* + - doc/*/* + - .github/* + - .github/*/* - .azure-pipelines.yml - .travis.yml + - CONTRIBUTORS + - COPYING + - README.md + - gen-msvc-project.bat + - setup.bat init: - ps: Update-AppveyorBuild -Version "$env:appveyor_repo_commit" -image: - # If this is modified, please also update the build script +image: # If this is modified, please also update the build script - Visual Studio 2019 -configuration: - # The builds will be run in this order +configuration: # The builds will be run in this order - Release - - Debug before_build: - - cmd: |- + - |- git submodule update --init --recursive mkdir build cd build cmake .. -G "Visual Studio 16 2019" -A Win32 build_script: - - cmd: cmake --build . --config %configuration% + - cmake --build . --config %configuration% on_success: - ps: |- - If ($env:configuration -eq 'Release') { - cd "bin\${env:configuration}" - 7z u "${env:configuration}.zip" ..\..\..\COPYING ..\..\..\README.md - 7z u "${env:configuration}.zip" Cxbx.exe glew32.dll subhook.dll SDL2.dll - 7z u "${env:configuration}.zip" cxbxr-debugger.exe capstone.dll cs_x86.dll - Get-ChildItem .\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name } - } + cd bin\$env:configuration + 7z u "$env:configuration.zip" ..\..\..\COPYING ..\..\..\README.md + 7z u "$env:configuration.zip" Cxbx.exe glew32.dll subhook.dll SDL2.dll + 7z u "$env:configuration.zip" cxbxr-debugger.exe capstone.dll cs_x86.dll + Get-ChildItem .\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }