Skip to content

Commit 647ae92

Browse files
committed
Print cmake commands before running them in debug mode
1 parent 43e40b8 commit 647ae92

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

packed/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,9 @@ function cmake_configure_build(args) {
267267
return [4 /*yield*/, core.group("Configuring ".concat(args.project, " (CMake)"), function () { return __awaiter(_this, void 0, void 0, function () {
268268
var configure_command;
269269
return __generator(this, function (_a) {
270+
core.debug("configure_args: ".concat(configure_args));
270271
configure_command = configure_args.join(" ");
272+
core.debug("configure_command: ".concat(configure_command));
271273
args.executor.run(configure_command, true);
272274
return [2 /*return*/];
273275
});
@@ -277,7 +279,9 @@ function cmake_configure_build(args) {
277279
return [4 /*yield*/, core.group("Building ".concat(args.project, " (CMake)"), function () { return __awaiter(_this, void 0, void 0, function () {
278280
var build_command;
279281
return __generator(this, function (_a) {
282+
core.debug("build_args: ".concat(build_args));
280283
build_command = build_args.join(" ");
284+
core.debug("build_command: ".concat(build_command));
281285
args.executor.run(build_command, true);
282286
return [2 /*return*/];
283287
});
@@ -287,7 +291,9 @@ function cmake_configure_build(args) {
287291
return [4 /*yield*/, core.group("Installing ".concat(args.project, " (CMake)"), function () { return __awaiter(_this, void 0, void 0, function () {
288292
var install_command;
289293
return __generator(this, function (_a) {
294+
core.debug("install_args: ".concat(install_args));
290295
install_command = install_args.join(" ");
296+
core.debug("install_command: ".concat(install_command));
291297
args.executor.run(install_command, true);
292298
return [2 /*return*/];
293299
});
@@ -91762,4 +91768,4 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"]
9176291768
/******/ module.exports = __webpack_exports__;
9176391769
/******/
9176491770
/******/ })()
91765-
;
91771+
;

src/main.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,21 @@ async function cmake_configure_build(args: {
206206
];
207207

208208
await core.group(`Configuring ${args.project} (CMake)`, async () => {
209+
core.debug(`configure_args: ${configure_args}`);
209210
const configure_command = configure_args.join(" ");
211+
core.debug(`configure_command: ${configure_command}`);
210212
args.executor.run(configure_command, true);
211213
});
212214
await core.group(`Building ${args.project} (CMake)`, async () => {
215+
core.debug(`build_args: ${build_args}`);
213216
const build_command = build_args.join(" ");
217+
core.debug(`build_command: ${build_command}`);
214218
args.executor.run(build_command, true);
215219
});
216220
await core.group(`Installing ${args.project} (CMake)`, async () => {
221+
core.debug(`install_args: ${install_args}`);
217222
const install_command = install_args.join(" ");
223+
core.debug(`install_command: ${install_command}`);
218224
args.executor.run(install_command, true);
219225
});
220226
}

0 commit comments

Comments
 (0)