ci(linux): fix git error by yarn [skip ci]

This commit is contained in:
Baptiste Augrain 2024-02-22 00:08:50 +01:00
parent 5da67f762f
commit 4f407ac513
2 changed files with 10 additions and 0 deletions

View file

@ -14,6 +14,12 @@ cd vscode || { echo "'vscode' dir not found"; exit 1; }
export VSCODE_SKIP_NODE_VERSION_CHECK=1 export VSCODE_SKIP_NODE_VERSION_CHECK=1
export VSCODE_SYSROOT_PREFIX='-glibc-2.17' export VSCODE_SYSROOT_PREFIX='-glibc-2.17'
pwd
ls -la *
git clean -xfd .
yarn cache clean
for i in {1..5}; do # try 5 times for i in {1..5}; do # try 5 times
yarn --cwd build --frozen-lockfile --check-files && break yarn --cwd build --frozen-lockfile --check-files && break
if [[ $i == 3 ]]; then if [[ $i == 3 ]]; then

View file

@ -50,6 +50,10 @@ yarn gulp "vscode-reh-${VSCODE_PLATFORM}-${VSCODE_ARCH}-min-ci"
cd .. cd ..
APP_NAME_LC="$( echo "${APP_NAME}" | awk '{print tolower($0)}' )"
mkdir -p assets
echo "Building and moving REH" echo "Building and moving REH"
cd "vscode-reh-${VSCODE_PLATFORM}-${VSCODE_ARCH}" cd "vscode-reh-${VSCODE_PLATFORM}-${VSCODE_ARCH}"
tar czf "../assets/${APP_NAME_LC}-reh-${VSCODE_PLATFORM}-${VSCODE_ARCH}-${RELEASE_VERSION}.tar.gz" . tar czf "../assets/${APP_NAME_LC}-reh-${VSCODE_PLATFORM}-${VSCODE_ARCH}-${RELEASE_VERSION}.tar.gz" .