diff --git a/.buildkite/ci.mjs b/.buildkite/ci.mjs index 2c8dccc2e8..7dc0eaa5c8 100755 --- a/.buildkite/ci.mjs +++ b/.buildkite/ci.mjs @@ -309,6 +309,33 @@ function getCppAgent(platform, options) { }); } +/** + * @param {Platform} platform + * @param {PipelineOptions} options + * @returns {string} + */ +function getLinkBunAgent(platform, options) { + const { os, arch, distro } = platform; + + if (os === "darwin") { + return { + queue: `build-${os}`, + os, + arch, + }; + } + + if (os === "windows") { + return getEc2Agent(platform, options, { + instanceType: arch === "aarch64" ? "r8g.large" : "r7i.large", + }); + } + + return getEc2Agent(platform, options, { + instanceType: arch === "aarch64" ? "r8g.xlarge" : "r7i.xlarge", + }); +} + /** * @returns {Platform} */ @@ -493,7 +520,7 @@ function getLinkBunStep(platform, options) { key: `${getTargetKey(platform)}-build-bun`, label: `${getTargetLabel(platform)} - build-bun`, depends_on: [`${getTargetKey(platform)}-build-cpp`, `${getTargetKey(platform)}-build-zig`], - agents: getCppAgent(platform, options), + agents: getLinkBunAgent(platform, options), retry: getRetry(), cancel_on_build_failing: isMergeQueue(), env: {