diff --git a/.buildkite/ci.mjs b/.buildkite/ci.mjs index d93686a440..3f4bbddf33 100755 --- a/.buildkite/ci.mjs +++ b/.buildkite/ci.mjs @@ -956,6 +956,16 @@ async function getPipelineOptions() { const buildPlatformsMap = new Map(buildPlatforms.map(platform => [getTargetKey(platform), platform])); const testPlatformsMap = new Map(testPlatforms.map(platform => [getPlatformKey(platform), platform])); + // No need to run the asan builds when not building a PR. + if (!canary) { + for (const platform of buildPlatforms) { + if (platform.profile === "asan") { + const key = getTargetKey(platform); + buildPlatformsMap.delete(key); + } + } + } + if (isManual) { const { fields } = getOptionsStep(); const keys = fields?.map(({ key }) => key) ?? [];