From f2b1f407633cf5bb6ed5148e7734b4967b03b194 Mon Sep 17 00:00:00 2001 From: Margen67 Date: Thu, 24 Dec 2020 11:29:45 -0800 Subject: [PATCH] appveyor.yml improvements Ignore files like GitHub Actions. Make image: into one line. Make submodule update into one line. Remove whitespace. Use AppVeyor's build system. 7z: Exclude files from the archive instead of deleting them. Make archive more consistent with GitHub Actions. Use artifacts: instead of PushArtifact. --- appveyor.yml | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 13533a455..2d27817a5 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,31 +1,35 @@ version: 1.0.{build} branches: only: - - dev + - dev + skip_tags: true -image: -- Visual Studio 2019 +skip_commits: + files: + - '.github/**' + - '**.md' + - 'scripts/*' + +image: Visual Studio 2019 install: -- cmd: >- - git submodule update --init --depth 1 - -build_script: -- cmd: >- - call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 + - git submodule update --init --depth 1 - msbuild duckstation.sln -t:Build -p:Platform=x64;Configuration=ReleaseLTCG +platform: x64 - rm -f bin/x64/*.pdb bin/x64/*.exp bin/x64/*.lib bin/x64/*.iobj bin/x64/*.ipdb +configuration: ReleaseLTCG - rm -f bin/x64/common-tests* - - cp -a data/* bin/x64 - - "C:\Program Files\7-Zip\7z.exe" a -r duckstation-win64-release.7z ./bin/x64/* - - appveyor PushArtifact duckstation-win64-release.7z +build: + parallel: true + project: duckstation.sln +after_build: + - |- + 7z a duckstation-windows-x64-release.zip .\bin\x64\* -r "-xr!*.pdb" "-xr!common-tests*" + 7z rn duckstation-windows-x64-release.zip updater-x64-ReleaseLTCG.exe updater.exe test: off + +artifacts: + - path: duckstation-windows-x64-release.zip