-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
appveyor.yml
98 lines (85 loc) · 3.26 KB
/
appveyor.yml
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: v1-winbuild-{build}
#
# If you change dependencies etc here, please also check and update
# the other Windows build resources:
#
# - DEVELOPER_GUIDE.md "Windows" section
# - appveyor.yml
# - .github/workflows/call-build-windows.yaml
# - dockerfiles/Dockerfile.windows
#
image: Visual Studio 2019
platform:
- Win32
- x64
environment:
vspath: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community'
winflexbison: https://github.com/lexxmark/winflexbison/releases/download/v2.5.22/win_flex_bison-2.5.22.zip
PATH: '%PATH%;C:\WinFlexBison'
configuration:
- Release
skip_commits:
files:
- ".github/**/*"
- "packaging/**/*"
- "dockerfiles/**/*"
- "**/*.md"
- "**/*.sh"
install:
- ps: Invoke-WebRequest -O winflexbison.zip $env:winflexbison
- ps: Expand-Archive winflexbison.zip -Destination /WinFlexBison
- ps: Copy-Item -Path /WinFlexBison/win_bison.exe /WinFlexBison/bison.exe
- ps: Copy-Item -Path /WinFlexBison/win_flex.exe /WinFlexBison/flex.exe
- cd C:\Tools\vcpkg
- git pull
- .\bootstrap-vcpkg.bat
- cd %APPVEYOR_BUILD_FOLDER%
before_build:
- if %PLATFORM%==Win32 call C:\tools\vcpkg\vcpkg install --recurse openssl --triplet x86-windows-static
- if %PLATFORM%==x64 call C:\tools\vcpkg\vcpkg install --recurse openssl --triplet x64-windows-static
- if %PLATFORM%==Win32 call "%vspath%\VC\Auxiliary\Build\vcvars32.bat"
- if %PLATFORM%==x64 call "%vspatH%\VC\Auxiliary\Build\vcvars64.bat"
build_script:
- ps: |
cd $ENV:APPVEYOR_BUILD_FOLDER\build
if ( "x64" -eq $env:PLATFORM ) {
$OPENSSL_DIR = "C:\tools\vcpkg\packages\openssl_x64-windows-static"
}
else {
$OPENSSL_DIR = "C:\tools\vcpkg\packages\openssl_x86-windows-static"
}
# CACHE GENERATION
cmake -G "NMake Makefiles" `
-D FLB_TESTS_INTERNAL=On `
-D OPENSSL_ROOT_DIR=$OPENSSL_DIR `
-D FLB_WITHOUT_flb-rt-out_elasticsearch=On `
-D FLB_WITHOUT_flb-rt-out_td=On `
-D FLB_WITHOUT_flb-rt-out_forward=On `
-D FLB_WITHOUT_flb-rt-in_disk=On `
-D FLB_WITHOUT_flb-rt-in_proc=On `
-D FLB_WITHOUT_flb-it-parser=On `
-D FLB_WITHOUT_flb-it-unit_sizes=On `
-D FLB_WITHOUT_flb-it-network=On `
-D FLB_WITHOUT_flb-it-pack=On `
-D FLB_WITHOUT_flb-it-signv4=On `
-D FLB_WITHOUT_flb-it-aws_credentials=On `
-D FLB_WITHOUT_flb-it-aws_credentials_ec2=On `
-D FLB_WITHOUT_flb-it-aws_credentials_http=On `
-D FLB_WITHOUT_flb-it-aws_credentials_profile=On `
-D FLB_WITHOUT_flb-it-aws_credentials_sts=On `
-D FLB_WITHOUT_flb-it-aws_util=On `
-D FLB_WITHOUT_flb-it-input_chunk=On `
../
# COMPILE
cmake --build .
# RUNNING TESTS
ctest --build-run-dir $PWD --output-on-failure
- cpack
- cmake -G "NMake Makefiles" ..\
- cmake --build .
- cpack
artifacts:
- path: build/fluent-bit-*.exe
name: fluent-bit-installer
- path: build/fluent-bit-*.zip
name: fluent-bit-zip