summaryrefslogtreecommitdiff
path: root/appveyor.yml
blob: c68f856d416578173ea37842728c5586c300c07b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
image: Visual Studio 2015
configuration:
- Debug
- DebugDLL
- Release
- ReleaseDLL

platform:
- x86
- x64

environment:
  matrix:
  - BUILD_SYSTEM: MSVC
  - BUILD_SYSTEM: CMAKE

build_script:
  - if "%BUILD_SYSTEM%" == "MSVC" (
      msbuild "%APPVEYOR_BUILD_FOLDER%\win32\VS2015\libogg.sln" /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /property:Configuration=%CONFIGURATION%;Platform=%PLATFORM%
    )
  - if "%BUILD_SYSTEM%" == "CMAKE" (
      mkdir "%APPVEYOR_BUILD_FOLDER%\build" &&
      pushd "%APPVEYOR_BUILD_FOLDER%\build" &&
      cmake -A "%PLATFORM%" -G "Visual Studio 14 2015" .. &&
      cmake --build . --config "%CONFIGURATION%" -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
      popd
    )

after_build:
  - if "%BUILD_SYSTEM%" == "MSVC" (
      7z a ogg.zip win32\VS2015\%PLATFORM%\%CONFIGURATION%\libogg.lib include\ogg\*.h
      if exist win32\VS2015\%PLATFORM%\%CONFIGURATION%\libogg.dll 7z a ogg.zip win32\VS2015\%PLATFORM%\%CONFIGURATION%\libogg.dll
    )

artifacts:
- path: ogg.zip