mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 12:57:31 +02:00
Fix OpenSSL builds in GHA CI
This commit is contained in:
committed by
Mohammad Nejati
parent
26714aceee
commit
3e91357daa
32
.github/workflows/ci.yml
vendored
32
.github/workflows/ci.yml
vendored
@ -252,22 +252,6 @@ jobs:
|
|||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
./b2 -d0 headers
|
./b2 -d0 headers
|
||||||
|
|
||||||
- name: Macos 11 specific
|
|
||||||
if: matrix.os == 'macos-11'
|
|
||||||
run: |
|
|
||||||
echo "macos - set up homebrew openssl"
|
|
||||||
cat > ~/user-config.jam <<EOF
|
|
||||||
import os ;
|
|
||||||
local OPENSSL_ROOT = [ os.environ OPENSSL_ROOT ] ;
|
|
||||||
project
|
|
||||||
: requirements
|
|
||||||
<include>/usr/local/opt/openssl/include
|
|
||||||
<variant>debug:<library-path>/usr/local/opt/openssl/lib
|
|
||||||
<target-os>windows<variant>debug:<library-path>/usr/local/opt/openssl/debug/lib
|
|
||||||
<variant>release:<library-path>/usr/local/opt/openssl/lib
|
|
||||||
;
|
|
||||||
EOF
|
|
||||||
|
|
||||||
- name: Create user-config.jam
|
- name: Create user-config.jam
|
||||||
if: matrix.compiler
|
if: matrix.compiler
|
||||||
run: |
|
run: |
|
||||||
@ -404,19 +388,15 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Setup OpenSSL
|
- name: Setup OpenSSL
|
||||||
env:
|
|
||||||
OPENSSL_ROOT: "C:\\OpenSSL"
|
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
echo Install choco
|
|
||||||
powershell -Command iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
|
|
||||||
if "${{matrix.addrmd}}" == "64" (
|
if "${{matrix.addrmd}}" == "64" (
|
||||||
choco install --no-progress -y openssl --x64
|
choco install --no-progress -y openssl --x64 --version=3.1.1
|
||||||
)
|
)
|
||||||
if "${{matrix.addrmd}}" == "32" (
|
if "${{matrix.addrmd}}" == "32" (
|
||||||
; as of 17.08.23 openssl 3 doesn't support x86
|
; as of 17.08.23 openssl 3 doesn't support x86
|
||||||
set openssl_install_dir="C:\\Program Files (x86)\\OpenSSL-Win32"
|
set openssl_install_dir="C:\\Program Files (x86)\\OpenSSL-Win32"
|
||||||
choco install --no-progress -y openssl --forcex86 --version 1.1.1.2100
|
choco install --no-progress -y openssl --forcex86 --version=1.1.1.2100
|
||||||
)
|
)
|
||||||
|
|
||||||
if "${{matrix.addrmd}}" == "64" (
|
if "${{matrix.addrmd}}" == "64" (
|
||||||
@ -426,7 +406,7 @@ jobs:
|
|||||||
set openssl_install_dir="C:\\Program Files\\OpenSSL-Win64"
|
set openssl_install_dir="C:\\Program Files\\OpenSSL-Win64"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
mklink /D %OPENSSL_ROOT% %openssl_install_dir%
|
mklink /D C:\OpenSSL %openssl_install_dir%
|
||||||
refreshenv
|
refreshenv
|
||||||
set
|
set
|
||||||
|
|
||||||
@ -449,19 +429,15 @@ jobs:
|
|||||||
xcopy /s /e /q %GITHUB_WORKSPACE% libs\%LIBRARY%\
|
xcopy /s /e /q %GITHUB_WORKSPACE% libs\%LIBRARY%\
|
||||||
git submodule update --init tools/boostdep
|
git submodule update --init tools/boostdep
|
||||||
python tools/boostdep/depinst/depinst.py --git_args "--jobs 3" %LIBRARY%
|
python tools/boostdep/depinst/depinst.py --git_args "--jobs 3" %LIBRARY%
|
||||||
copy libs\%LIBRARY%\tools\user-config.jam %USERPROFILE%\user-config.jam
|
echo using openssl : : ^<include^>"C:/OpenSSL/include" ^<search^>"C:/OpenSSL/lib" ^<ssl-name^>libssl ^<crypto-name^>libcrypto : ^<address-model^>${{matrix.addrmd}} ; >> %USERPROFILE%\user-config.jam
|
||||||
set OPENSSL_ROOT=C:\OpenSSL
|
|
||||||
cmd /c bootstrap
|
cmd /c bootstrap
|
||||||
b2 -d0 headers
|
b2 -d0 headers
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
|
||||||
OPENSSL_ROOT: "C:/OpenSSL"
|
|
||||||
run: |
|
run: |
|
||||||
echo "current directory: $(pwd)"
|
echo "current directory: $(pwd)"
|
||||||
cd ../boost-root
|
cd ../boost-root
|
||||||
export OPENSSL_ROOT="C:/OpenSSL"
|
|
||||||
if [[ "${{matrix.supported}}" != "true" ]] ; then
|
if [[ "${{matrix.supported}}" != "true" ]] ; then
|
||||||
echo "This configuration is not supported because ${{matrix.supported}}"
|
echo "This configuration is not supported because ${{matrix.supported}}"
|
||||||
exit 0
|
exit 0
|
||||||
|
2
Jamfile
2
Jamfile
@ -53,8 +53,6 @@ variant beast_ubasan
|
|||||||
<define>BOOST_USE_ASAN=1
|
<define>BOOST_USE_ASAN=1
|
||||||
;
|
;
|
||||||
|
|
||||||
path-constant TEST_MAIN : include/boost/beast/_experimental/unit_test/main.cpp ;
|
|
||||||
|
|
||||||
project /boost/beast ;
|
project /boost/beast ;
|
||||||
|
|
||||||
local defines =
|
local defines =
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
alias run-tests :
|
alias run-tests :
|
||||||
[ compile core.cpp ]
|
[ compile core.cpp ]
|
||||||
[ compile http.cpp ]
|
[ compile http.cpp ]
|
||||||
[ compile ssl.cpp ]
|
[ compile ssl.cpp /boost/beast//lib-asio-ssl ]
|
||||||
[ compile version.cpp ]
|
[ compile version.cpp ]
|
||||||
[ compile websocket.cpp ]
|
[ compile websocket.cpp ]
|
||||||
[ compile zlib.cpp ]
|
[ compile zlib.cpp ]
|
||||||
|
@ -19,6 +19,7 @@ local RUN_TESTS ;
|
|||||||
for local f in $(SOURCES)
|
for local f in $(SOURCES)
|
||||||
{
|
{
|
||||||
RUN_TESTS += [ run $(f)
|
RUN_TESTS += [ run $(f)
|
||||||
|
/boost/beast//lib-asio-ssl
|
||||||
/boost/beast/test//lib-test
|
/boost/beast/test//lib-test
|
||||||
] ;
|
] ;
|
||||||
}
|
}
|
||||||
@ -27,12 +28,14 @@ alias run-tests : $(RUN_TESTS) ;
|
|||||||
|
|
||||||
exe fat-tests :
|
exe fat-tests :
|
||||||
$(SOURCES)
|
$(SOURCES)
|
||||||
|
/boost/beast//lib-asio-ssl
|
||||||
/boost/beast/test//lib-test
|
/boost/beast/test//lib-test
|
||||||
;
|
;
|
||||||
|
|
||||||
explicit fat-tests ;
|
explicit fat-tests ;
|
||||||
|
|
||||||
run $(SOURCES)
|
run $(SOURCES)
|
||||||
|
/boost/beast//lib-asio-ssl
|
||||||
/boost/beast/test//lib-test
|
/boost/beast/test//lib-test
|
||||||
: : : : run-fat-tests ;
|
: : : : run-fat-tests ;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user