mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
This change pre-downloads all build dependencies (Zig, WebKit, BoringSSL, etc.) into the CI build images, significantly reducing build startup time by avoiding repeated downloads. Changes: - Add scripts/bake-dependencies.sh to clone Bun and run cmake configure to download all dependencies during image creation - Update bootstrap.sh to call bake-dependencies.sh when in CI mode - Add buildkite checkout hook to use git fetch instead of full clone when the repository already exists (preserves build/ and vendor/zig/) - Add buildkite pre-command hook to remove node_modules before each build, ensuring clean dependency installation - Update Dockerfile with the same hooks and pre-baked dependencies During CI builds: 1. git fetch origin <commit> (instead of full clone) 2. git checkout <commit> 3. rm -rf node_modules && bun install 4. Build uses pre-downloaded dependencies from build/ and vendor/ Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
38 KiB
Executable File
38 KiB
Executable File