tag:help.appveyor.com,2012-11-13:/discussions/questions/21159-building-multiple-exe-filesAppVeyor: Discussion 2018-08-31T19:49:34Ztag:help.appveyor.com,2012-11-13:Comment/453822582018-05-31T05:57:00Z2018-05-31T05:57:00ZBuilding multiple .exe files<div><p>If you want to avoid repeating clone process multiple times then you could simply put those artifacts (which i assume share the same package name) into separate folders, and not bother with a 'for' matrix.</p>
<p>But if the clone step doesn't run for too long then the matrix option might make for more clarity in build history and configuration file. Plus the jobs will be isolated from each other's potential side effects. If you wanted to leverage the matrix for such benefits, you could just define 3 values under a <code>configuration:</code> key and then filter for them under a <code>for:</code> node.</p>
<pre>
<code>configuration:
- flavor1
- flavor2
- flavor3
for:
-
matrix:
only:
- configuration: flavor1
build_script:
- custom build script
-
matrix:
only:
- configuration: flavor2
build_script:
- custom build script
-
matrix:
only:
- configuration: flavor2
build_script:
- custom build script</code>
</pre></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/453822582018-06-03T21:52:30Z2018-06-03T21:52:30ZBuilding multiple .exe files<div><p>The first option is more appealing, but how do I create one build script that produces sperate artifacts? Each of my 3 flavors produces a Release build and (as far as I can figure out) cmake is fairly rigid in its Debug/Release configurations.... and I do need to run cmake for each of my flavors. I guess the build script could copy the Release folder into a new folder that is part of the artifact.</p></div>Rontag:help.appveyor.com,2012-11-13:Comment/453822582018-06-04T14:55:22Z2018-06-04T14:55:22ZBuilding multiple .exe files<div><p>I know very little about cmake so pardon my ignorance, but why wouldn't a simple approach with 3 top level directories, a 'CmakeLists.txt' in each of them, and 3 calls to cmake/msbuild work?</p></div>Owen McDonnell