Skip to content

Commit

Permalink
avppveyor: Use vcpkg to install the latest OpenSSL
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Aug 7, 2024
1 parent 18a0380 commit 3225ea6
Showing 1 changed file with 41 additions and 11 deletions.
52 changes: 41 additions & 11 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ platform:
- Win32
- x64

# branches to build
branches:
only:
- nonexistent

# Do not build feature branch with open Pull Requests
skip_branch_with_pr: true

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
Expand All @@ -45,15 +37,53 @@ install:
- 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:
- git clone --depth=1 https://github.com/calyptia/fluent-bit-ci.git ci
- ps: Copy-Item -Path .\ci\scripts\run-unit-tests.ps1 .\ci\do-ut.ps1
- if %PLATFORM%==Win32 call C:\vcpkg\vcpkg install --recurse openssl --triplet x86-windows-static
- if %PLATFORM%==x64 call C:\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:
- powershell ".\ci\do-ut.ps1;exit $LASTEXITCODE"
- ps: |
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
- cd build
- cpack
- cmake -G "NMake Makefiles" ..\
Expand Down

0 comments on commit 3225ea6

Please sign in to comment.