Revert "ci: Add bootstrap.ps1 and automate Windows build images" (#15591)

This commit is contained in:
Meghan Denny
2024-12-04 17:07:35 -08:00
committed by GitHub
parent e904a181d8
commit 61cc9c3947
13 changed files with 1274 additions and 3776 deletions

View File

@@ -3,7 +3,6 @@
import { spawn as nodeSpawn } from "node:child_process";
import { existsSync, readFileSync, mkdirSync, cpSync, chmodSync } from "node:fs";
import { basename, join, resolve } from "node:path";
import { isCI, printEnvironment, startGroup } from "./utils.mjs";
// https://cmake.org/cmake/help/latest/manual/cmake.1.html#generate-a-project-buildsystem
const generateFlags = [
@@ -38,10 +37,6 @@ async function build(args) {
return spawn("pwsh", ["-NoProfile", "-NoLogo", "-File", shellPath, process.argv0, scriptPath, ...args]);
}
if (isCI) {
printEnvironment();
}
const env = {
...process.env,
FORCE_COLOR: "1",
@@ -107,8 +102,7 @@ async function build(args) {
const generateArgs = Object.entries(generateOptions).flatMap(([flag, value]) =>
flag.startsWith("-D") ? [`${flag}=${value}`] : [flag, value],
);
await startGroup("CMake Configure", () => spawn("cmake", generateArgs, { env }));
await spawn("cmake", generateArgs, { env }, "configuration");
const envPath = resolve(buildPath, ".env");
if (existsSync(envPath)) {
@@ -122,8 +116,7 @@ async function build(args) {
const buildArgs = Object.entries(buildOptions)
.sort(([a], [b]) => (a === "--build" ? -1 : a.localeCompare(b)))
.flatMap(([flag, value]) => [flag, value]);
await startGroup("CMake Build", () => spawn("cmake", buildArgs, { env }));
await spawn("cmake", buildArgs, { env }, "compilation");
printDuration("total", Date.now() - startTime);
}