This repository was archived by the owner on May 9, 2023. It is now read-only.
forked from pbatard/libwdi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
76 lines (68 loc) · 2.7 KB
/
appveyor.yml
File metadata and controls
76 lines (68 loc) · 2.7 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
os: Visual Studio 2017
init:
- ps: >-
if ($env:appveyor_repo_tag -eq "true") {
Update-AppveyorBuild -Version "$env:appveyor_repo_tag_name"
} else {
Update-AppveyorBuild -Version "dev-$($env:appveyor_repo_commit.substring(0,7))"
}
- git config --global core.autocrlf input
environment:
global:
BITS: 32
matrix:
- CONFIGURATION: Release
COMPILER: MinGW
PLATFORM: i686
- CONFIGURATION: Release
COMPILER: MinGW
PLATFORM: x86_64
- CONFIGURATION: Debug
COMPILER: MSVC
PLATFORM: Win32
- CONFIGURATION: Debug
COMPILER: MSVC
PLATFORM: x64
- CONFIGURATION: Release
COMPILER: MSVC
PLATFORM: Win32
- CONFIGURATION: Release
COMPILER: MSVC
PLATFORM: x64
build:
project: libwdi.sln
parallel: true
verbosity: detailed
install:
- curl -o wdk10-redist.7z -L http://files.akeo.ie/appveyor/libwdi/wdk10-redist.7z
- curl -o libusb-win32-bin-1.2.6.0.zip -L http://files.akeo.ie/appveyor/libwdi/libusb-win32-bin-1.2.6.0.zip
- curl -o libusbK-3.0.7.0-bin.7z -L http://files.akeo.ie/appveyor/libwdi/libusbK-3.0.7.0-bin.7z
- 7z x wdk10-redist.7z
- 7z x libusb-win32-bin-1.2.6.0.zip
- 7z x libusbK-3.0.7.0-bin.7z
- if [%PLATFORM%]==[x86_64] set BITS=64
- if [%PLATFORM%]==[x86_64] set EXTRA_OPTS=--disable-32bit
build_script:
- if [%COMPILER%]==[MSVC] msbuild libwdi.sln /m /p:Configuration=%CONFIGURATION%,Platform=%PLATFORM%,BuildMacros="WDK_DIR=\"c:/projects/libwdi/wdk\";LIBUSB0_DIR=\"c:/projects/libwdi/libusb-win32-bin-1.2.6.0\";LIBUSBK_DIR=\"c:/projects/libwdi/libusbK-3.0.7.0-bin/bin\"" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- if [%COMPILER%]==[MinGW] C:\msys64\usr\bin\bash -lc "export PATH=/mingw%BITS%/bin:$PATH; cd /c/projects/libwdi; ./bootstrap.sh; ./configure --build=%PLATFORM%-w64-mingw32 --host=%PLATFORM%-w64-mingw32 --enable-toggable-debug --enable-examples-build --disable-debug --disable-shared %EXTRA_OPTS% --with-wdkdir=\"C:/Projects/libwdi/wdk\" --with-wdfver=1011 --with-libusb0=\"C:/Projects/libwdi/libusb-win32-bin-1.2.6.0\" --with-libusbk=\"C:/Projects/libwdi/libusbK-3.0.7.0-bin/bin\"; make -j4"
artifacts:
- path: examples/zadig.exe
name: zadig
- path: examples/zadic.exe
name: zadic
- path: examples/wdi-simple.exe
name: wdi-simple
deploy:
- provider: S3
access_key_id: AKIAJCSVGGXMV4335V5A
secret_access_key:
secure: UhfaYDMgH3ldEEqX+YVHaPol1EccPNRV9qgCcrOzc7YiNng3kbwDEHShcuqvPmw1
region: us-east-1
bucket: fermiumlabs-software
folder: libwdi
artifact: zadig, zadic, wdi-simple
on:
branch: master
CONFIGURATION: Release
COMPILER: MinGW
PLATFORM: x86_64