Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

ci: retry linux e2e bun install

Louis Beaumont84d3e62a1251
diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml
index d2de08365..28a876f85 100644
--- a/.github/workflows/e2e-test.yml
+++ b/.github/workflows/e2e-test.yml
@@ -255,9 +255,24 @@ jobs:
- uses: actions/checkout@v4
- name: Setup Bun
- uses: oven-sh/setup-bun@v2
- with:
- bun-version: 1.3.10
+ shell: bash
+ run: |
+ set -euo pipefail
+ bun_version="1.3.10"
+ install_dir="$HOME/.bun/bin"
+ tmp_dir="$(mktemp -d)"
+ mkdir -p "$install_dir"
+
+ curl --fail --location \
+ --retry 10 --retry-all-errors --retry-delay 10 \
+ --connect-timeout 30 --max-time 300 \
+ -o "$tmp_dir/bun.zip" \
+ "https://github.com/oven-sh/bun/releases/download/bun-v${bun_version}/bun-linux-x64.zip"
+ unzip -q "$tmp_dir/bun.zip" -d "$tmp_dir"
+ cp "$tmp_dir/bun-linux-x64/bun" "$install_dir/bun"
+ chmod +x "$install_dir/bun"
+ echo "$install_dir" >> "$GITHUB_PATH"
+ "$install_dir/bun" --version
- name: Install Linux dependencies
timeout-minutes: 20