File tree Expand file tree Collapse file tree 1 file changed +6
-16
lines changed Expand file tree Collapse file tree 1 file changed +6
-16
lines changed Original file line number Diff line number Diff line change 95
95
name : bin-directory
96
96
path : memory/bin/
97
97
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
-
113
98
- name : Setup build environment (Linux)
114
99
if : runner.os == 'Linux'
115
100
run : |
@@ -131,7 +116,8 @@ jobs:
131
116
wget \
132
117
xz-utils \
133
118
git \
134
- curl
119
+ curl \
120
+ libc6-dev
135
121
136
122
# 安装交叉编译工具链
137
123
if [[ "${{ matrix.target }}" != "linux-amd64" ]]; then
@@ -160,6 +146,10 @@ jobs:
160
146
fi
161
147
fi
162
148
149
+ - name : Check glibc version
150
+ if : runner.os == 'Linux'
151
+ run : ldd --version
152
+
163
153
- name : Setup build environment (macOS)
164
154
if : runner.os == 'macOS'
165
155
run : |
You can’t perform that action at this time.
0 commit comments