• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1version: 1.0.{build}
2image:
3  - Visual Studio 2013
4  - Visual Studio 2015
5  - Visual Studio 2017
6  - Visual Studio 2019
7  - Visual Studio 2022
8platform:
9  - Win32
10  - x64
11configuration:
12  - Debug
13  - Release
14environment:
15  toolset: UNK
16clone_depth: 1
17build:
18  parallel: true
19for:
20  -
21    matrix:
22      only:
23        - image: Visual Studio 2013
24    environment:
25      toolset: v120
26    build:
27      project: msvc\libusb.sln
28
29  -
30    matrix:
31      only:
32        - image: Visual Studio 2015
33          configuration: Debug
34    environment:
35      toolset: v140
36    build:
37      project: msvc\libusb.sln
38
39  -
40    matrix:
41      only:
42        - image: Visual Studio 2015
43          platform: Win32
44          configuration: Release
45    environment:
46      toolset: v140
47    install:
48      - cmd: xcopy /S /I "%APPVEYOR_BUILD_FOLDER%" C:\msys64\home\appveyor\libusb
49      - cmd: xcopy /S /I "%APPVEYOR_BUILD_FOLDER%" C:\cygwin\home\appveyor\libusb
50    build_script:
51      - cmd: msbuild "%APPVEYOR_BUILD_FOLDER%\msvc\libusb.sln" /m /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
52      - cmd: C:\msys64\usr\bin\bash -l "%APPVEYOR_BUILD_FOLDER%\.private\appveyor_build.sh" MinGW
53      - cmd: C:\cygwin\bin\bash -l "%APPVEYOR_BUILD_FOLDER%\.private\appveyor_build.sh" cygwin
54    after_build:
55      - cmd: 7z a "libusb-build_%APPVEYOR_BUILD_WORKER_IMAGE%_%PLATFORM%_%CONFIGURATION%.7z" tag_* README-build.txt build\%TOOLSET%\%PLATFORM%\%CONFIGURATION%\dll build\%TOOLSET%\%PLATFORM%\%CONFIGURATION%\lib build\%TOOLSET%\%PLATFORM%\%CONFIGURATION%\*.exe C:\msys64\home\appveyor\libusb-MinGW-Win32 C:\cygwin\home\appveyor\libusb-cygwin-Win32
56
57  -
58    matrix:
59      only:
60        - image: Visual Studio 2015
61          platform: x64
62          configuration: Release
63    environment:
64      toolset: v140
65    install:
66      - cmd: xcopy /S /I "%APPVEYOR_BUILD_FOLDER%" C:\msys64\home\appveyor\libusb
67      - cmd: xcopy /S /I "%APPVEYOR_BUILD_FOLDER%" C:\cygwin64\home\appveyor\libusb
68    build_script:
69      - cmd: msbuild "%APPVEYOR_BUILD_FOLDER%\msvc\libusb.sln" /m /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
70      - cmd: C:\msys64\usr\bin\bash -l "%APPVEYOR_BUILD_FOLDER%\.private\appveyor_build.sh" MinGW
71      - cmd: C:\cygwin64\bin\bash -l "%APPVEYOR_BUILD_FOLDER%\.private\appveyor_build.sh" cygwin
72    after_build:
73      - cmd: 7z a "libusb-build_%APPVEYOR_BUILD_WORKER_IMAGE%_%PLATFORM%_%CONFIGURATION%.7z" tag_* README-build.txt build\%TOOLSET%\%PLATFORM%\%CONFIGURATION%\dll build\%TOOLSET%\%PLATFORM%\%CONFIGURATION%\lib build\%TOOLSET%\%PLATFORM%\%CONFIGURATION%\*.exe C:\msys64\home\appveyor\libusb-MinGW-x64 C:\cygwin64\home\appveyor\libusb-cygwin-x64
74
75  -
76    matrix:
77      only:
78        - image: Visual Studio 2017
79    environment:
80      toolset: v141
81    build:
82      project: msvc\libusb.sln
83
84  -
85    matrix:
86      only:
87        - image: Visual Studio 2019
88    environment:
89      toolset: v142
90    build:
91      project: msvc\libusb.sln
92
93  -
94    matrix:
95      only:
96        - image: Visual Studio 2022
97    environment:
98      toolset: v143
99    build:
100      project: msvc\libusb.sln
101
102after_build:
103  - cmd: ECHO This was built by %APPVEYOR_BUILD_WORKER_IMAGE% from %APPVEYOR_REPO_NAME% commit %APPVEYOR_REPO_COMMIT% > README-build.txt
104  - cmd: ECHO > tag_%APPVEYOR_REPO_TAG_NAME%_commit_%APPVEYOR_REPO_COMMIT%
105  - cmd: 7z a "libusb-build_%APPVEYOR_BUILD_WORKER_IMAGE%_%PLATFORM%_%CONFIGURATION%.7z" tag_* README-build.txt build\%TOOLSET%\%PLATFORM%\%CONFIGURATION%\dll build\%TOOLSET%\%PLATFORM%\%CONFIGURATION%\lib build\%TOOLSET%\%PLATFORM%\%CONFIGURATION%\*.exe
106
107artifacts:
108  - path: "libusb-build_%APPVEYOR_BUILD_WORKER_IMAGE%_%PLATFORM%_%CONFIGURATION%.7z"
109