diff --git a/adk/data/compile-regolith.bat b/adk/data/compile-regolith.bat index c61e843..8b500b6 100644 --- a/adk/data/compile-regolith.bat +++ b/adk/data/compile-regolith.bat @@ -1,3 +1,7 @@ -cmake -S ./data/adk -B adk-build -DCMAKE_BUILD_TYPE=Release -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_TOOLCHAIN_FILE=%1 +IF %2 == ""( + cmake -S ./data/adk -B adk-build -DCMAKE_BUILD_TYPE=Release -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_TOOLCHAIN_FILE=%1 +) ELSE ( + cmake -S ./data/adk -B adk-build -DCMAKE_BUILD_TYPE=Release -DVCPKG_TARGET_TRIPLET=x64-windows -DGITHUB_ACTION=%2 +) cmake --build adk-build --config Release --parallel -.\adk-build\Release\adk.exe \ No newline at end of file +./adk-build/Release/adk.exe \ No newline at end of file