Skip to content

Commit f05f37e

Browse files
committed
fix: build
1 parent 76c144c commit f05f37e

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

.github/scripts/libmongocrypt.mjs

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -133,23 +133,13 @@ export async function buildLibMongoCrypt(libmongocryptRoot, nodeDepsRoot, option
133133

134134
await run(
135135
'cmake',
136-
[
137-
'--parallel',
138-
'4',
139-
...CMAKE_FLAGS,
140-
...WINDOWS_CMAKE_FLAGS,
141-
...MACOS_CMAKE_FLAGS,
142-
libmongocryptRoot
143-
],
136+
[...CMAKE_FLAGS, ...WINDOWS_CMAKE_FLAGS, ...MACOS_CMAKE_FLAGS, libmongocryptRoot],
144137
{ cwd: nodeBuildRoot }
145138
);
146-
await run(
147-
'cmake',
148-
['--parallel', '4', '--build', '.', '--target', 'install', '--config', 'RelWithDebInfo'],
149-
{
150-
cwd: nodeBuildRoot
151-
}
152-
);
139+
140+
await run('cmake', ['--build', '.', '--target', 'install', '--config', 'RelWithDebInfo'], {
141+
cwd: nodeBuildRoot
142+
});
153143
}
154144

155145
export async function downloadLibMongoCrypt(nodeDepsRoot, { ref, crypto }, fastDownload) {
@@ -264,9 +254,7 @@ async function main() {
264254
const isBuilt = libmongocryptBuiltVersion.trim() === libmongocrypt.ref;
265255

266256
if (clean || !isBuilt) {
267-
await buildLibMongoCrypt(libmongocryptCloneDir, nodeDepsDir, {
268-
crypto: libmongocrypt.crypto
269-
});
257+
await buildLibMongoCrypt(libmongocryptCloneDir, nodeDepsDir, libmongocrypt);
270258
}
271259
} else {
272260
// Download

0 commit comments

Comments
 (0)