Skip to content

Commit

Permalink
build: prepare for PPC64LE client (#1923)
Browse files Browse the repository at this point in the history
  • Loading branch information
lex-ibm committed Jun 11, 2024
1 parent 6a38a6e commit ffd7e63
Show file tree
Hide file tree
Showing 4 changed files with 460 additions and 37 deletions.
12 changes: 11 additions & 1 deletion package_linux_bin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ cd vscode || { echo "'vscode' dir not found"; exit 1; }
export VSCODE_SKIP_NODE_VERSION_CHECK=1
export VSCODE_SYSROOT_PREFIX='-glibc-2.17'

if [[ "${VSCODE_ARCH}" == "ppc64le" ]]; then
export VSCODE_SYSROOT_REPO='VSCodium/vscode-linux-build-agent'
export VSCODE_SYSROOT_VERSION='20240129-253798'
export VSCODE_SYSROOT_PREFIX='-glibc-2.28'
fi

if [[ -d "../patches/${OS_NAME}/client/" ]]; then
for file in "../patches/${OS_NAME}/client/"*.patch; do
if [[ -f "${file}" ]]; then
Expand All @@ -37,7 +43,11 @@ for i in {1..5}; do # try 5 times
echo "Yarn failed $i, trying again..."
done

./build/azure-pipelines/linux/setup-env.sh
if [[ "${VSCODE_ARCH}" == "ppc64le" ]]; then
source ./build/azure-pipelines/linux/setup-env.sh
else
./build/azure-pipelines/linux/setup-env.sh
fi

for i in {1..5}; do # try 5 times
yarn --check-files && break
Expand Down
2 changes: 2 additions & 0 deletions package_linux_reh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ elif [[ "${VSCODE_ARCH}" == "ppc64le" ]]; then
VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME="vscodium/vscodium-linux-build-agent:bionic-devtoolset-ppc64le"
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
export VSCODE_SYSROOT_REPO='VSCodium/vscode-linux-build-agent'
export VSCODE_SYSROOT_VERSION='20240129-253798'
elif [[ "${VSCODE_ARCH}" == "riscv64" ]]; then
VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME="vscodium/vscodium-linux-build-agent:focal-devtoolset-riscv64"
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
Expand Down
Loading

0 comments on commit ffd7e63

Please sign in to comment.