package_linux_bin.sh 835 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/env bash
  2. # shellcheck disable=SC1091
  3. set -ex
  4. if [[ "${CI_BUILD}" == "no" ]]; then
  5. exit 1
  6. fi
  7. if [[ -f "./vscode.tar.gz" ]]; then
  8. tar -xfz ./vscode.tar.gz .
  9. fi
  10. cd vscode || { echo "'vscode' dir not found"; exit 1; }
  11. export VSCODE_SYSROOT_PREFIX='-glibc-2.17'
  12. for i in {1..5}; do # try 5 times
  13. yarn --cwd build --frozen-lockfile --check-files && break
  14. if [[ $i == 3 ]]; then
  15. echo "Yarn failed too many times" >&2
  16. exit 1
  17. fi
  18. echo "Yarn failed $i, trying again..."
  19. done
  20. ./build/azure-pipelines/linux/install.sh
  21. EXPECTED_GLIBC_VERSION="2.17" EXPECTED_GLIBCXX_VERSION="3.4.22" ./build/azure-pipelines/linux/verify-glibc-requirements.sh
  22. node build/azure-pipelines/distro/mixin-npm
  23. yarn gulp "vscode-linux-${VSCODE_ARCH}-min-ci"
  24. find "../VSCode-linux-${VSCODE_ARCH}" -print0 | xargs -0 touch -c
  25. cd ..