-
Notifications
You must be signed in to change notification settings - Fork 30.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: linux pipeline to use containers only for yarn step (#188383)
* ci: use container only in yarn step * chore: invalidate cache * chore: install missing deps for packaging * chore: remove duplicate package installations * fix: oss build * chore: separate deb and rpm package preparation * chore: mount out folder when packaging * ci: switch to official docker image
- Loading branch information
1 parent
b949114
commit 00039b0
Showing
7 changed files
with
148 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2023-06-12T12:55:48.130Z | ||
2023-07-20T13:31:34.746Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
# To workaround the issue of yarn not respecting the registry value from .npmrc | ||
yarn config set registry "$NPM_REGISTRY" | ||
|
||
if [ -z "$CC" ] || [ -z "$CXX" ]; then | ||
# Download clang based on chromium revision used by vscode | ||
curl -s https://raw.githubusercontent.com/chromium/chromium/108.0.5359.215/tools/clang/scripts/update.py | python - --output-dir=$PWD/.build/CR_Clang --host-os=linux | ||
|
||
# Download libcxx headers and objects from upstream electron releases | ||
DEBUG=libcxx-fetcher \ | ||
VSCODE_LIBCXX_OBJECTS_DIR=$PWD/.build/libcxx-objects \ | ||
VSCODE_LIBCXX_HEADERS_DIR=$PWD/.build/libcxx_headers \ | ||
VSCODE_LIBCXXABI_HEADERS_DIR=$PWD/.build/libcxxabi_headers \ | ||
VSCODE_ARCH="$npm_config_arch" \ | ||
node build/linux/libcxx-fetcher.js | ||
|
||
# Set compiler toolchain | ||
# Flags for the client build are based on | ||
# https://source.chromium.org/chromium/chromium/src/+/refs/tags/108.0.5359.215:build/config/arm.gni | ||
# https://source.chromium.org/chromium/chromium/src/+/refs/tags/108.0.5359.215:build/config/compiler/BUILD.gn | ||
# https://source.chromium.org/chromium/chromium/src/+/refs/tags/108.0.5359.215:build/config/c++/BUILD.gn | ||
export CC=$PWD/.build/CR_Clang/bin/clang | ||
export CXX=$PWD/.build/CR_Clang/bin/clang++ | ||
export CXXFLAGS="-nostdinc++ -D__NO_INLINE__ -I$PWD/.build/libcxx_headers -isystem$PWD/.build/libcxx_headers/include -isystem$PWD/.build/libcxxabi_headers/include -fPIC -flto=thin -fsplit-lto-unit -D_LIBCPP_ABI_NAMESPACE=Cr" | ||
export LDFLAGS="-stdlib=libc++ -fuse-ld=lld -flto=thin -L$PWD/.build/libcxx-objects -lc++abi -Wl,--lto-O0" | ||
export VSCODE_REMOTE_CC=$(which gcc) | ||
export VSCODE_REMOTE_CXX=$(which g++) | ||
fi | ||
|
||
for i in {1..5}; do # try 5 times | ||
yarn --frozen-lockfile --check-files && break | ||
if [ $i -eq 3 ]; then | ||
echo "Yarn failed too many times" >&2 | ||
exit 1 | ||
fi | ||
echo "Yarn failed $i, trying again..." | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters