mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
ci: If only tests change, use artifacts from last successful build (#14927)
This commit is contained in:
@@ -1010,9 +1010,16 @@ async function getExecPathFromBuildKite(target) {
|
||||
|
||||
const releasePath = join(cwd, "release");
|
||||
mkdirSync(releasePath, { recursive: true });
|
||||
|
||||
const args = ["artifact", "download", "**", releasePath, "--step", target];
|
||||
const buildId = process.env["BUILDKITE_ARTIFACT_BUILD_ID"];
|
||||
if (buildId) {
|
||||
args.push("--build", buildId);
|
||||
}
|
||||
|
||||
await spawnSafe({
|
||||
command: "buildkite-agent",
|
||||
args: ["artifact", "download", "**", releasePath, "--step", target],
|
||||
args,
|
||||
});
|
||||
|
||||
let zipPath;
|
||||
|
||||
Reference in New Issue
Block a user