From 62a4467a2ec6077e301dc85f18e0d552205d5b0c Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Thu, 20 Feb 2025 13:14:09 +0800 Subject: [PATCH] ci: build on demand when run cpp test --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9446056..088f549 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "build": "node scripts/build_instrumentation.js && tsc --build ./transform/tsconfig.json && tsc --build ./src/tsconfig.json", "test:as": "node bin/as-test.js", "test:ts": "cross-env NODE_OPTIONS=--experimental-vm-modules jest", - "test:cpp": "cmake -B build -S . && cmake --build build && build/bin/wasm-instrumentation-test", + "test:cpp": "cmake -B build -S . && cmake --build build --target wasm-instrumentation-test wasm-opt && build/bin/wasm-instrumentation-test", "test": "npm run test:as && npm run test:ts && npm run test:cpp", "lint": "eslint src assembly tests/ts/test --max-warnings=0 && prettier -c .", "lint:fix": "eslint src assembly --fix && npx prettier --write .",