@@ -121,53 +121,23 @@ steps:
121
121
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
122
122
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
123
123
GITHUB_TOKEN: "$(github-distro-mixin-password)"
124
+ VSCODE_HOST_MOUNT: "/mnt/vss/_work/1/s"
125
+ ${{ if or(eq(parameters.VSCODE_ARCH, 'x64'), eq(parameters.VSCODE_ARCH, 'arm64')) }}:
126
+ VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME: vscodehub.azurecr.io/vscode-linux-build-agent:centos7-devtoolset8-$(VSCODE_ARCH)
127
+ ${{ if eq(parameters.VSCODE_ARCH, 'armhf') }}:
128
+ VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME: vscodehub.azurecr.io/vscode-linux-build-agent:bionic-arm32v7
124
129
displayName: Install dependencies (non-OSS)
125
130
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
126
131
127
- - script : |
128
- set -e
132
+ - ${{ if or(eq(parameters.VSCODE_ARCH, 'x64'), eq(parameters.VSCODE_ARCH, 'arm64')) }} :
133
+ - script : |
134
+ set -e
129
135
130
- TRIPLE="x86_64-linux-gnu"
131
- if [ "$VSCODE_ARCH" == "arm64" ]; then
132
- TRIPLE="aarch64-linux-gnu"
133
- elif [ "$VSCODE_ARCH" == "armhf" ]; then
134
- TRIPLE="arm-rpi-linux-gnueabihf"
135
- fi
136
-
137
- # Get all files with .node extension from remote/node_modules folder
138
- files=$(find remote/node_modules -name "*.node")
139
-
140
- # Check if any file has dependency of GLIBC > 2.28 or GLIBCXX > 3.4.25
141
- for file in $files; do
142
- glibc_version="2.28"
143
- glibcxx_version="3.4.25"
144
- while IFS= read -r line; do
145
- if [[ $line == *"GLIBC_"* ]]; then
146
- version=$(echo "$line" | awk '{print $5}' | tr -d '()')
147
- version=${version#*_}
148
- if [[ $(printf "%s\n%s" "$version" "$glibc_version" | sort -V | tail -n1) == "$version" ]]; then
149
- glibc_version=$version
150
- fi
151
- elif [[ $line == *"GLIBCXX_"* ]]; then
152
- version=$(echo "$line" | awk '{print $5}' | tr -d '()')
153
- version=${version#*_}
154
- if [[ $(printf "%s\n%s" "$version" "$glibcxx_version" | sort -V | tail -n1) == "$version" ]]; then
155
- glibcxx_version=$version
156
- fi
157
- fi
158
- done < <("$PWD/.build/sysroots/$TRIPLE/$TRIPLE/bin/objdump" -T "$file")
159
-
160
- if [[ "$glibc_version" != "2.28" ]]; then
161
- echo "Error: File $file has dependency on GLIBC > 2.28"
162
- exit 1
163
- fi
164
- if [[ "$glibcxx_version" != "3.4.25" ]]; then
165
- echo "Error: File $file has dependency on GLIBCXX > 3.4.25"
166
- exit 1
167
- fi
168
- done
169
- condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
170
- displayName: Check GLIBC and GLIBCXX dependencies in remote/node_modules
136
+ EXPECTED_GLIBC_VERSION="2.17" \
137
+ EXPECTED_GLIBCXX_VERSION="3.4.19" \
138
+ ./build/azure-pipelines/linux/verify-glibc-requirements.sh
139
+ condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
140
+ displayName: Check GLIBC and GLIBCXX dependencies in remote/node_modules
171
141
172
142
- script : node build/azure-pipelines/distro/mixin-npm
173
143
condition : and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
@@ -248,6 +218,7 @@ steps:
248
218
249
219
- script : |
250
220
set -e
221
+ export VSCODE_NODE_GLIBC='-glibc-2.17'
251
222
yarn gulp vscode-reh-linux-$(VSCODE_ARCH)-min-ci
252
223
mv ../vscode-reh-linux-$(VSCODE_ARCH) ../vscode-server-linux-$(VSCODE_ARCH) # TODO@joaomoreno
253
224
ARCHIVE_PATH=".build/linux/server/vscode-server-linux-$(VSCODE_ARCH).tar.gz"
@@ -260,6 +231,7 @@ steps:
260
231
261
232
- script : |
262
233
set -e
234
+ export VSCODE_NODE_GLIBC='-glibc-2.17'
263
235
yarn gulp vscode-reh-web-linux-$(VSCODE_ARCH)-min-ci
264
236
mv ../vscode-reh-web-linux-$(VSCODE_ARCH) ../vscode-server-linux-$(VSCODE_ARCH)-web # TODO@joaomoreno
265
237
ARCHIVE_PATH=".build/linux/web/vscode-server-linux-$(VSCODE_ARCH)-web.tar.gz"
0 commit comments