Skip to content

Commit

Permalink
Merge pull request #271 from Coldwings/main
Browse files Browse the repository at this point in the history
fix workflow release dependencies
  • Loading branch information
liulanzheng authored Sep 29, 2023
2 parents 970dbb3 + 6e105e3 commit 2c92634
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ elif [[ ${OS} =~ "centos" ]]; then
fi

yum install -y epel-release libaio-devel libcurl-devel openssl-devel libnl3-devel e2fsprogs-devel
yum install -y rpm-build make git wget sudo
yum install --skip-broken -y libzstd-static libzstd-devel
yum install -y rpm-build make git wget sudo autoconf automake libtool
yum install --skip-broken -y libzstd-static gcc gcc-c++ binutils libzstd-devel
elif [[ ${OS} =~ "mariner" ]]; then
yum install -y libaio-devel libcurl-devel openssl-devel libnl3-devel e2fsprogs-devel glibc-devel libzstd-devel binutils ca-certificates-microsoft build-essential
yum install -y rpm-build make git wget sudo tar gcc gcc-c++
yum install -y rpm-build make git wget sudo tar gcc gcc-c++ autoconf automake libtool

DISTRO=${OS/:/.}
PACKAGE_RELEASE="-DPACKAGE_RELEASE=1.${DISTRO}"
Expand Down
9 changes: 9 additions & 0 deletions CMake/FindCURL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,18 @@ if(${BUILD_CURL_FROM_SOURCE})
OUTPUT ${curl_bundle_BINARY_DIR}/lib/libcurl.a
WORKING_DIRECTORY ${curl_bundle_SOURCE_DIR}
COMMAND
export CC=${CMAKE_C_COMPILER} &&
export CXX=${CMAKE_CXX_COMPILER} &&
export LD=${CMAKE_LINKER} &&
export CFLAGS=-fPIC &&
autoreconf -i && sh configure --with-openssl --without-libssh2
--enable-static --enable-shared=no --enable-optimize
--enable-symbol-hiding --disable-manual --without-libidn
--disable-ftp --disable-file --disable-ldap --disable-ldaps
--disable-rtsp --disable-dict --disable-telnet --disable-tftp
--disable-pop3 --disable-imap --disable-smb --disable-smtp
--disable-gopher --without-nghttp2 --enable-http
--with-pic=PIC
--prefix=${curl_bundle_BINARY_DIR} && make -j && make install)
add_custom_target(libcurl_static_build
DEPENDS ${curl_bundle_BINARY_DIR}/lib/libcurl.a)
Expand Down

0 comments on commit 2c92634

Please sign in to comment.