Skip to content

Commit f28f553

Browse files
authored
fix: ldd版本检测
1 parent 0420b04 commit f28f553

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

.github/workflows/build_dd.yaml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -95,21 +95,6 @@ jobs:
9595
name: bin-directory
9696
path: memory/bin/
9797

98-
- name: Build and install newer glibc
99-
if: runner.os == 'Linux'
100-
run: |
101-
wget http://ftp.gnu.org/gnu/libc/glibc-2.35.tar.gz
102-
tar -xvzf glibc-2.35.tar.gz
103-
cd glibc-2.35
104-
mkdir build
105-
cd build
106-
../configure --prefix=/opt/glibc-2.35
107-
make -j$(nproc)
108-
sudo make install
109-
echo 'export LD_LIBRARY_PATH=/opt/glibc-2.35/lib:$LD_LIBRARY_PATH' >> ~/.bashrc
110-
echo 'export CPATH=/opt/glibc-2.35/include:$CPATH' >> ~/.bashrc
111-
source ~/.bashrc
112-
11398
- name: Setup build environment (Linux)
11499
if: runner.os == 'Linux'
115100
run: |
@@ -131,7 +116,8 @@ jobs:
131116
wget \
132117
xz-utils \
133118
git \
134-
curl
119+
curl \
120+
libc6-dev
135121
136122
# 安装交叉编译工具链
137123
if [[ "${{ matrix.target }}" != "linux-amd64" ]]; then
@@ -160,6 +146,10 @@ jobs:
160146
fi
161147
fi
162148
149+
- name: Check glibc version
150+
if: runner.os == 'Linux'
151+
run: ldd --version
152+
163153
- name: Setup build environment (macOS)
164154
if: runner.os == 'macOS'
165155
run: |

0 commit comments

Comments
 (0)