summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.generate.ts
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci.generate.ts')
-rw-r--r--.github/workflows/ci.generate.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts
index 980661a2d..0c2f062e3 100644
--- a/.github/workflows/ci.generate.ts
+++ b/.github/workflows/ci.generate.ts
@@ -10,6 +10,8 @@ const Runners = {
"${{ 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 = {
name: "Set up incremental LTO and sysroot build",
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 |
sudo dd of=/etc/apt/trusted.gpg.d/llvm-snapshot.gpg
sudo apt-get update
-sudo apt-get install --no-install-recommends debootstrap \\
- clang-15 lld-15
+# this was unreliable sometimes, so try again if it fails
+${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
# depending on a very recent version of glibc.