Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 91f9f3c

Browse files
committed
project: Add AppVeyor CI settings.
1 parent fb1fb4c commit 91f9f3c

1 file changed

Lines changed: 63 additions & 0 deletions

File tree

SMP/appveyor.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
version: '{build}'
2+
3+
branches:
4+
only:
5+
- master
6+
skip_non_tags: true
7+
configuration: Release+ReleaseDLLStaticDeps
8+
shallow_clone: true
9+
10+
environment:
11+
matrix:
12+
- MSVC_VER: 14
13+
- MSVC_VER: 12
14+
15+
before_build:
16+
- ps: >-
17+
$script = @'
18+
19+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build" ToolsVersion="4.0">
20+
<ItemGroup>
21+
<ConfigurationList Condition="'@(ConfigurationList)' == '' and $(Configuration) != ''" Include="$(Configuration.Split('+'))" />
22+
<ConfigurationList Condition="'@(ConfigurationList)' == ''" Include="Release" />
23+
<PlatformList Condition="'@(PlatformList)' == ''" Include="x64;Win32" />
24+
</ItemGroup>
25+
<Target Name="Build" Outputs="%(PlatformList.Identity)">
26+
<PropertyGroup>
27+
<CurrentPlatform>%(PlatformList.Identity)</CurrentPlatform>
28+
</PropertyGroup>
29+
<MSBuild Projects="SMP/APPVEYOR_PROJECT_NAME.sln" Properties="Configuration=%(ConfigurationList.Identity);Platform=$(CurrentPlatform);OutDir=$(MSBuildThisFileDirectory)build_out\;" />
30+
</Target>
31+
</Project>
32+
33+
'@
34+
35+
36+
$script = $script -replace "APPVEYOR_PROJECT_NAME", "$env:APPVEYOR_PROJECT_NAME"
37+
38+
$script | Out-File build.vcxproj
39+
- ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:MSVC_VER" + "0COMNTOOLS"))
40+
- cmd: call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" amd64
41+
- cmd: call "%APPVEYOR_BUILD_FOLDER%\SMP\project_get_dependencies.bat"
42+
43+
build:
44+
project: build.vcxproj
45+
parallel: true
46+
verbosity: minimal
47+
48+
after_build:
49+
- cmd: copy /y %APPVEYOR_BUILD_FOLDER%\..\prebuilt\licenses\*.* %APPVEYOR_BUILD_FOLDER%\build_out\licenses\
50+
51+
artifacts:
52+
- path: build_out
53+
name: $(APPVEYOR_PROJECT_NAME)_$(APPVEYOR_REPO_TAG_NAME)_msvc$(MSVC_VER)
54+
type: zip
55+
56+
deploy:
57+
- provider: GitHub
58+
tag: $(APPVEYOR_REPO_TAG_NAME)
59+
description: Pre-built static and shared libraries in 32b and 64b for $(APPVEYOR_PROJECT_NAME) $(APPVEYOR_REPO_TAG_NAME)
60+
auth_token:
61+
secure: aiTcAD/YitqgwuiBdC3ImXiUlHfIIDD7ayjCs3Y3aAO5vEm1gA7flCZpUZ60a5am
62+
artifact: $(APPVEYOR_PROJECT_NAME)_$(APPVEYOR_REPO_TAG_NAME)_msvc$(MSVC_VER)
63+
force_update: true

0 commit comments

Comments
 (0)