Fix CI build

This commit is contained in:
Jarred Sumner
2025-05-03 17:00:48 -07:00
parent d26e140287
commit c419ae587a

View File

@@ -952,20 +952,15 @@ async function getPipelineOptions() {
return;
}
const canary = await getCanaryRevision();
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);
}
}
let filteredBuildPlatforms = buildPlatforms;
if (isMainBranch()) {
filteredBuildPlatforms = buildPlatforms.filter(({ profile }) => profile !== "asan");
}
const canary = await getCanaryRevision();
const buildPlatformsMap = new Map(filteredBuildPlatforms.map(platform => [getTargetKey(platform), platform]));
const testPlatformsMap = new Map(testPlatforms.map(platform => [getPlatformKey(platform), platform]));
if (isManual) {
const { fields } = getOptionsStep();
const keys = fields?.map(({ key }) => key) ?? [];