@@ -29,18 +29,31 @@ jobs:
2929 # https://github.com/Intreecom/scyllapy/blob/develop/.github/workflows/release.yaml
3030 before-script-linux : |
3131 set -ex
32+ # Print the current distribution information
33+ echo "System Information:" && uname -a
34+ if command -v lsb_release &> /dev/null; then
35+ lsb_release -a
36+ elif [ -f /etc/os-release ]; then
37+ cat /etc/os-release
38+ elif [ -f /etc/redhat-release ]; then
39+ cat /etc/redhat-release
40+ elif [ -f /etc/debian_version ]; then
41+ echo "Debian Version: $(cat /etc/debian_version)"
42+ else
43+ echo "Distribution information not found."
44+ fi
3245 if command -v yum &> /dev/null; then
3346 yum update -y
3447 yum-config-manager --add-repo https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=${{ matrix.target }}
35- yum install -y perl curl openssl openssl-libs openssl-devel pkgconfig libatomic clang-devel xz-devel
48+ yum install -y perl-devel curl openssl openssl-libs openssl-devel pkgconfig libatomic clang-devel xz-devel
3649 if [[ ! -d "/usr/lib64" ]]; then
3750 ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so
3851 fi
3952 else
40- apt update -y && apt-get install -y perl curl libssl-dev openssl pkg-config libclang-dev liblzma-dev
53+ apt update -y && apt-get install -y perl-modules curl libssl-dev openssl pkg-config libclang-dev liblzma-dev
4154 fi
4255 curl -L https://cpanmin.us | perl - --sudo App::cpanminus
43- cpanm IPC::Cmd
56+ cpanm ExtUtils::Manifest && cpanm YAML IPC::Cmd
4457 export OPENSSL_LIB_DIR=$(pkg-config --variable=libdir openssl)
4558 export OPENSSL_INCLUDE_DIR=$(pkg-config --variable=includedir openssl)
4659 if [ -z "$OPENSSL_LIB_DIR" ] || [ -z "$OPENSSL_INCLUDE_DIR" ]; then
0 commit comments