mirror of
				https://github.com/threeal/cmake-action.git
				synced 2025-11-04 05:43:42 +00:00 
			
		
		
		
	feat: remove setting the default of source-dir to .
				
					
				
			This commit is contained in:
		
							parent
							
								
									6c4e2145fb
								
							
						
					
					
						commit
						72821fb225
					
				
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							@ -27771,7 +27771,7 @@ var external_node_path_default = /*#__PURE__*/__nccwpck_require__.n(external_nod
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function getInputs() {
 | 
					function getInputs() {
 | 
				
			||||||
    const sourceDir = (0,core.getInput)("source-dir") || ".";
 | 
					    const sourceDir = (0,core.getInput)("source-dir");
 | 
				
			||||||
    return {
 | 
					    return {
 | 
				
			||||||
        sourceDir,
 | 
					        sourceDir,
 | 
				
			||||||
        buildDir: (0,core.getInput)("build-dir") || external_node_path_default().join(sourceDir, "build"),
 | 
					        buildDir: (0,core.getInput)("build-dir") || external_node_path_default().join(sourceDir, "build"),
 | 
				
			||||||
 | 
				
			|||||||
@ -150,7 +150,7 @@ describe("get action inputs", () => {
 | 
				
			|||||||
      });
 | 
					      });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      expect(getInputs()).toStrictEqual({
 | 
					      expect(getInputs()).toStrictEqual({
 | 
				
			||||||
        sourceDir: ".",
 | 
					        sourceDir: "",
 | 
				
			||||||
        buildDir: "build",
 | 
					        buildDir: "build",
 | 
				
			||||||
        generator: "",
 | 
					        generator: "",
 | 
				
			||||||
        cCompiler: "",
 | 
					        cCompiler: "",
 | 
				
			||||||
 | 
				
			|||||||
@ -16,7 +16,7 @@ export interface Inputs {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function getInputs(): Inputs {
 | 
					export function getInputs(): Inputs {
 | 
				
			||||||
  const sourceDir = getInput("source-dir") || ".";
 | 
					  const sourceDir = getInput("source-dir");
 | 
				
			||||||
  return {
 | 
					  return {
 | 
				
			||||||
    sourceDir,
 | 
					    sourceDir,
 | 
				
			||||||
    buildDir: getInput("build-dir") || path.join(sourceDir, "build"),
 | 
					    buildDir: getInput("build-dir") || path.join(sourceDir, "build"),
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user