Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed Jun 13, 2024
1 parent 76c144c commit f05f37e
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/scripts/libmongocrypt.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -133,23 +133,13 @@ export async function buildLibMongoCrypt(libmongocryptRoot, nodeDepsRoot, option

await run(
'cmake',
[
'--parallel',
'4',
...CMAKE_FLAGS,
...WINDOWS_CMAKE_FLAGS,
...MACOS_CMAKE_FLAGS,
libmongocryptRoot
],
[...CMAKE_FLAGS, ...WINDOWS_CMAKE_FLAGS, ...MACOS_CMAKE_FLAGS, libmongocryptRoot],
{ cwd: nodeBuildRoot }
);
await run(
'cmake',
['--parallel', '4', '--build', '.', '--target', 'install', '--config', 'RelWithDebInfo'],
{
cwd: nodeBuildRoot
}
);

await run('cmake', ['--build', '.', '--target', 'install', '--config', 'RelWithDebInfo'], {
cwd: nodeBuildRoot
});
}

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

if (clean || !isBuilt) {
await buildLibMongoCrypt(libmongocryptCloneDir, nodeDepsDir, {
crypto: libmongocrypt.crypto
});
await buildLibMongoCrypt(libmongocryptCloneDir, nodeDepsDir, libmongocrypt);
}
} else {
// Download
Expand Down

0 comments on commit f05f37e

Please sign in to comment.