mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
chore(ci): try to make sysroot step more reliable (#17383)
Main is failing a lot because of: ``` Err:8 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 debootstrap all 1.0.118ubuntu1.8 Connection failed [IP: 40.81.13.82 80] Fetched 44.1 MB in 60s (734 kB/s) E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/debootstrap_1.0.118ubuntu1.8_all.deb Connection failed [IP: 40.81.13.82 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? ```
This commit is contained in:
parent
9e282155b7
commit
5707a958ac
2 changed files with 6 additions and 4 deletions
6
.github/workflows/ci.generate.ts
vendored
6
.github/workflows/ci.generate.ts
vendored
|
@ -10,6 +10,8 @@ const Runners = {
|
||||||
"${{ github.repository == 'denoland/deno' && 'windows-2022-xl' || 'windows-2022' }}",
|
"${{ github.repository == 'denoland/deno' && 'windows-2022-xl' || 'windows-2022' }}",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const installPkgsCommand =
|
||||||
|
"sudo apt-get install --no-install-recommends debootstrap clang-15 lld-15";
|
||||||
const sysRootStep = {
|
const sysRootStep = {
|
||||||
name: "Set up incremental LTO and sysroot build",
|
name: "Set up incremental LTO and sysroot build",
|
||||||
run: `# Avoid running man-db triggers, which sometimes takes several minutes
|
run: `# Avoid running man-db triggers, which sometimes takes several minutes
|
||||||
|
@ -23,8 +25,8 @@ curl https://apt.llvm.org/llvm-snapshot.gpg.key |
|
||||||
gpg --dearmor |
|
gpg --dearmor |
|
||||||
sudo dd of=/etc/apt/trusted.gpg.d/llvm-snapshot.gpg
|
sudo dd of=/etc/apt/trusted.gpg.d/llvm-snapshot.gpg
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install --no-install-recommends debootstrap \\
|
# this was unreliable sometimes, so try again if it fails
|
||||||
clang-15 lld-15
|
${installPkgsCommand} || echo 'Failed. Trying again.' && sudo apt-get clean && sudo apt-get update && ${installPkgsCommand}
|
||||||
|
|
||||||
# Create ubuntu-16.04 sysroot environment, which is used to avoid
|
# Create ubuntu-16.04 sysroot environment, which is used to avoid
|
||||||
# depending on a very recent version of glibc.
|
# depending on a very recent version of glibc.
|
||||||
|
|
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -187,8 +187,8 @@ jobs:
|
||||||
gpg --dearmor |
|
gpg --dearmor |
|
||||||
sudo dd of=/etc/apt/trusted.gpg.d/llvm-snapshot.gpg
|
sudo dd of=/etc/apt/trusted.gpg.d/llvm-snapshot.gpg
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install --no-install-recommends debootstrap \
|
# this was unreliable sometimes, so try again if it fails
|
||||||
clang-15 lld-15
|
sudo apt-get install --no-install-recommends debootstrap clang-15 lld-15 || echo 'Failed. Trying again.' && sudo apt-get clean && sudo apt-get update && sudo apt-get install --no-install-recommends debootstrap clang-15 lld-15
|
||||||
|
|
||||||
# Create ubuntu-16.04 sysroot environment, which is used to avoid
|
# Create ubuntu-16.04 sysroot environment, which is used to avoid
|
||||||
# depending on a very recent version of glibc.
|
# depending on a very recent version of glibc.
|
||||||
|
|
Loading…
Reference in a new issue