@@ -29,6 +29,10 @@ inputs:
2929 description : ' Whether to run ./build-release-windows.sh for the CMake target'
3030 required : false
3131 default : ' false'
32+ use_curl :
33+ description : ' Whether to enable CURL networking (LD_CURL_NETWORKING=ON)'
34+ required : false
35+ default : ' false'
3236
3337runs :
3438 using : composite
@@ -44,22 +48,30 @@ runs:
4448 - name : Install OpenSSL
4549 uses : ./.github/actions/install-openssl
4650 id : install-openssl
51+ - name : Install CURL
52+ if : inputs.use_curl == 'true'
53+ uses : ./.github/actions/install-curl
54+ id : install-curl
4755 - name : Build Library
4856 shell : bash
49- run : ./scripts/build.sh ${{ inputs.cmake_target }} ON
57+ run : ./scripts/build.sh ${{ inputs.cmake_target }} ON ${{ inputs.use_curl }}
5058 env :
5159 BOOST_ROOT : ${{ steps.install-boost.outputs.BOOST_ROOT }}
5260 Boost_DIR : ${{ steps.install-boost.outputs.Boost_DIR }}
5361 OPENSSL_ROOT_DIR : ${{ steps.install-openssl.outputs.OPENSSL_ROOT_DIR }}
62+ CURL_ROOT : ${{ steps.install-curl.outputs.CURL_ROOT }}
63+ CMAKE_PREFIX_PATH : ${{ steps.install-curl.outputs.CURL_ROOT }}
5464 - name : Build Tests
5565 id : build-tests
5666 if : inputs.run_tests == 'true'
5767 shell : bash
58- run : ./scripts/build.sh gtest_${{ inputs.cmake_target }} ON
68+ run : ./scripts/build.sh gtest_${{ inputs.cmake_target }} ON ${{ inputs.use_curl }}
5969 env :
6070 BOOST_ROOT : ${{ steps.install-boost.outputs.BOOST_ROOT }}
6171 Boost_DIR : ${{ steps.install-boost.outputs.Boost_DIR }}
6272 OPENSSL_ROOT_DIR : ${{ steps.install-openssl.outputs.OPENSSL_ROOT_DIR }}
73+ CURL_ROOT : ${{ steps.install-curl.outputs.CURL_ROOT }}
74+ CMAKE_PREFIX_PATH : ${{ steps.install-curl.outputs.CURL_ROOT }}
6375 - name : Run Tests
6476 if : steps.build-tests.outcome == 'success'
6577 shell : bash
@@ -70,16 +82,30 @@ runs:
7082 - name : Simulate Release (Linux/MacOS)
7183 if : inputs.simulate_release == 'true'
7284 shell : bash
73- run : ./scripts/build-release.sh ${{ inputs.cmake_target }}
85+ run : |
86+ if [ "${{ inputs.use_curl }}" == "true" ]; then
87+ ./scripts/build-release.sh ${{ inputs.cmake_target }} --with-curl
88+ else
89+ ./scripts/build-release.sh ${{ inputs.cmake_target }}
90+ fi
7491 env :
7592 BOOST_ROOT : ${{ steps.install-boost.outputs.BOOST_ROOT }}
7693 OPENSSL_ROOT_DIR : ${{ steps.install-openssl.outputs.OPENSSL_ROOT_DIR }}
94+ CURL_ROOT : ${{ steps.install-curl.outputs.CURL_ROOT }}
95+ CMAKE_PREFIX_PATH : ${{ steps.install-curl.outputs.CURL_ROOT }}
7796
7897 - name : Simulate Release (Windows)
7998 if : inputs.simulate_windows_release == 'true'
8099 shell : bash
81- run : ./scripts/build-release-windows.sh ${{ inputs.cmake_target }}
100+ run : |
101+ if [ "${{ inputs.use_curl }}" == "true" ]; then
102+ ./scripts/build-release-windows.sh ${{ inputs.cmake_target }} --with-curl
103+ else
104+ ./scripts/build-release-windows.sh ${{ inputs.cmake_target }}
105+ fi
82106 env :
83107 BOOST_ROOT : ${{ steps.install-boost.outputs.BOOST_ROOT }}
84108 OPENSSL_ROOT_DIR : ${{ steps.install-openssl.outputs.OPENSSL_ROOT_DIR }}
85109 Boost_DIR : ' C:\local\boost_1_87_0\lib64-msvc-14.3\cmake\Boost-1.87.0'
110+ CURL_ROOT : ${{ steps.install-curl.outputs.CURL_ROOT }}
111+ CMAKE_PREFIX_PATH : ${{ steps.install-curl.outputs.CURL_ROOT }}
0 commit comments