ci(linux): use container dependencies only for remote [skip ci]
This commit is contained in:
parent
95db40ceb0
commit
f18abb0ab8
2 changed files with 8 additions and 13 deletions
|
@ -2,11 +2,6 @@ diff --git a/build/npm/postinstall.js b/build/npm/postinstall.js
|
|||
index 72dd74f..0f70d8c 100644
|
||||
--- a/build/npm/postinstall.js
|
||||
+++ b/build/npm/postinstall.js
|
||||
@@ -50,3 +50,3 @@ function yarnInstall(dir, opts) {
|
||||
|
||||
- if (process.env['VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME'] && /^(.build\/distro\/npm\/)?remote$/.test(dir)) {
|
||||
+ if (process.env['VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME']) {
|
||||
const userinfo = os.userInfo();
|
||||
@@ -55,10 +55,6 @@ function yarnInstall(dir, opts) {
|
||||
opts.cwd = root;
|
||||
- if (process.env['npm_config_arch'] === 'arm64' || process.env['npm_config_arch'] === 'arm') {
|
||||
|
|
|
@ -107,15 +107,15 @@ if [[ "${OS_NAME}" == "linux" ]]; then
|
|||
|
||||
export VSCODE_HOST_MOUNT
|
||||
|
||||
# if [[ "${VSCODE_ARCH}" == "x64" || "${VSCODE_ARCH}" == "arm64" ]]; then
|
||||
# VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME="vscodium/vscodium-linux-build-agent:centos7-devtoolset8-${VSCODE_ARCH}"
|
||||
# elif [[ "${VSCODE_ARCH}" == "armhf" ]]; then
|
||||
# VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME="vscodium/vscodium-linux-build-agent:bionic-devtoolset-arm32v7"
|
||||
# elif [[ "${VSCODE_ARCH}" == "ppc64le" ]]; then
|
||||
# VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME="vscodium/vscodium-linux-build-agent:bionic-devtoolset-ppc64le"
|
||||
# fi
|
||||
if [[ "${VSCODE_ARCH}" == "x64" || "${VSCODE_ARCH}" == "arm64" ]]; then
|
||||
VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME="vscodium/vscodium-linux-build-agent:centos7-devtoolset8-${VSCODE_ARCH}"
|
||||
elif [[ "${VSCODE_ARCH}" == "armhf" ]]; then
|
||||
VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME="vscodium/vscodium-linux-build-agent:bionic-devtoolset-arm32v7"
|
||||
elif [[ "${VSCODE_ARCH}" == "ppc64le" ]]; then
|
||||
VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME="vscodium/vscodium-linux-build-agent:bionic-devtoolset-ppc64le"
|
||||
fi
|
||||
|
||||
# export VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME
|
||||
export VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME
|
||||
|
||||
for i in {1..5}; do # try 5 times
|
||||
yarn --cwd build --frozen-lockfile --check-files && break
|
||||
|
|
Loading…
Reference in a new issue