mirror of
				https://github.com/threeal/cmake-action.git
				synced 2025-11-04 05:43:42 +00:00 
			
		
		
		
	feat: parse and pass args input
				
					
				
			This commit is contained in:
		
							parent
							
								
									3c93417fee
								
							
						
					
					
						commit
						2f4b1bb0b2
					
				
							
								
								
									
										3
									
								
								main/index.mjs
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								main/index.mjs
									
									
									
										generated
									
									
									
								
							@ -27263,6 +27263,9 @@ async function main() {
 | 
			
		||||
        .flatMap((opts) => opts.split(" "))
 | 
			
		||||
        .map((opt) => "-D" + opt);
 | 
			
		||||
    configureArgs.push(...options);
 | 
			
		||||
    const args = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getMultilineInput("args")
 | 
			
		||||
        .flatMap((args) => args.split(" "));
 | 
			
		||||
    configureArgs.push(...args);
 | 
			
		||||
    await _actions_exec__WEBPACK_IMPORTED_MODULE_1__.exec("cmake", configureArgs);
 | 
			
		||||
    _actions_core__WEBPACK_IMPORTED_MODULE_0__.setOutput("build-dir", buildDir || "build");
 | 
			
		||||
    const runBuild = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getBooleanInput("run-build");
 | 
			
		||||
 | 
			
		||||
@ -28,6 +28,11 @@ async function main() {
 | 
			
		||||
    .map((opt) => "-D" + opt);
 | 
			
		||||
  configureArgs.push(...options);
 | 
			
		||||
 | 
			
		||||
  const args = core
 | 
			
		||||
    .getMultilineInput("args")
 | 
			
		||||
    .flatMap((args) => args.split(" "));
 | 
			
		||||
  configureArgs.push(...args);
 | 
			
		||||
 | 
			
		||||
  await exec.exec("cmake", configureArgs);
 | 
			
		||||
  core.setOutput("build-dir", buildDir || "build");
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user