mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Fix CI build
This commit is contained in:
@@ -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) ?? [];
|
||||
|
||||
Reference in New Issue
Block a user