setup-sdl: Print cmake commands before running them in debug mode

From 647ae9290479374d43a59d73196ece302b3ab4eb Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sun, 26 May 2024 00:39:30 +0200
Subject: [PATCH] Print cmake commands before running them in debug mode

---
 packed/index.js | 8 +++++++-
 src/main.ts     | 6 ++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/packed/index.js b/packed/index.js
index dfcf2aa..76987fa 100644
--- a/packed/index.js
+++ b/packed/index.js
@@ -267,7 +267,9 @@ function cmake_configure_build(args) {
                     return [4 /*yield*/, core.group("Configuring ".concat(args.project, " (CMake)"), function () { return __awaiter(_this, void 0, void 0, function () {
                             var configure_command;
                             return __generator(this, function (_a) {
+                                core.debug("configure_args: ".concat(configure_args));
                                 configure_command = configure_args.join(" ");
+                                core.debug("configure_command: ".concat(configure_command));
                                 args.executor.run(configure_command, true);
                                 return [2 /*return*/];
                             });
@@ -277,7 +279,9 @@ function cmake_configure_build(args) {
                     return [4 /*yield*/, core.group("Building ".concat(args.project, " (CMake)"), function () { return __awaiter(_this, void 0, void 0, function () {
                             var build_command;
                             return __generator(this, function (_a) {
+                                core.debug("build_args: ".concat(build_args));
                                 build_command = build_args.join(" ");
+                                core.debug("build_command: ".concat(build_command));
                                 args.executor.run(build_command, true);
                                 return [2 /*return*/];
                             });
@@ -287,7 +291,9 @@ function cmake_configure_build(args) {
                     return [4 /*yield*/, core.group("Installing ".concat(args.project, " (CMake)"), function () { return __awaiter(_this, void 0, void 0, function () {
                             var install_command;
                             return __generator(this, function (_a) {
+                                core.debug("install_args: ".concat(install_args));
                                 install_command = install_args.join(" ");
+                                core.debug("install_command: ".concat(install_command));
                                 args.executor.run(install_command, true);
                                 return [2 /*return*/];
                             });
@@ -91762,4 +91768,4 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"]
 /******/ 	module.exports = __webpack_exports__;
 /******/ 	
 /******/ })()
-;
+;
\ No newline at end of file
diff --git a/src/main.ts b/src/main.ts
index ba4d148..c821bec 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -206,15 +206,21 @@ async function cmake_configure_build(args: {
   ];
 
   await core.group(`Configuring ${args.project} (CMake)`, async () => {
+    core.debug(`configure_args: ${configure_args}`);
     const configure_command = configure_args.join(" ");
+    core.debug(`configure_command: ${configure_command}`);
     args.executor.run(configure_command, true);
   });
   await core.group(`Building ${args.project} (CMake)`, async () => {
+    core.debug(`build_args: ${build_args}`);
     const build_command = build_args.join(" ");
+    core.debug(`build_command: ${build_command}`);
     args.executor.run(build_command, true);
   });
   await core.group(`Installing ${args.project} (CMake)`, async () => {
+    core.debug(`install_args: ${install_args}`);
     const install_command = install_args.join(" ");
+    core.debug(`install_command: ${install_command}`);
     args.executor.run(install_command, true);
   });
 }