Compare commits
	
		
			2 commits
		
	
	
		
			e0cb53ab31
			...
			fb3b89c375
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| fb3b89c375 | |||
| d8b7e85de5 | 
					 1 changed files with 14 additions and 1 deletions
				
			
		
							
								
								
									
										15
									
								
								main.js
									
										
									
									
									
								
							
							
						
						
									
										15
									
								
								main.js
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -95,6 +95,10 @@ async function main() {
 | 
			
		|||
        console.log(details)
 | 
			
		||||
        core.endGroup()
 | 
			
		||||
 | 
			
		||||
        core.startGroup("Check sourceDirectory")
 | 
			
		||||
        await exec.exec("ls", ["-la", sourceDirectory])
 | 
			
		||||
        core.endGroup()
 | 
			
		||||
 | 
			
		||||
        if (cpuArchitecture != "amd64") {
 | 
			
		||||
            core.startGroup("Install QEMU")
 | 
			
		||||
            // Need newer QEMU to avoid errors
 | 
			
		||||
| 
						 | 
				
			
			@ -183,13 +187,22 @@ async function main() {
 | 
			
		|||
        ])
 | 
			
		||||
        core.endGroup()
 | 
			
		||||
 | 
			
		||||
        core.startGroup("Check sourceDirectory")
 | 
			
		||||
        await exec.exec("docker", [
 | 
			
		||||
            "exec",
 | 
			
		||||
            container,
 | 
			
		||||
            "ls", "-la", sourceDirectory
 | 
			
		||||
        ])
 | 
			
		||||
        core.endGroup()
 | 
			
		||||
 | 
			
		||||
        if (imageTag != "trusty") {
 | 
			
		||||
            core.startGroup("Install build dependencies")
 | 
			
		||||
            await exec.exec("docker", [
 | 
			
		||||
                "exec",
 | 
			
		||||
                container,
 | 
			
		||||
                "bash", "-c",
 | 
			
		||||
                `apt-get build-dep -yq -t '${imageTag}' '${sourceDirectory}' || apt-get build-dep -yq '${sourceDirectory}'`
 | 
			
		||||
//                `apt-get build-dep -yq -t '${imageTag}' '${sourceDirectory}' || apt-get build-dep -yq '${sourceDirectory}'`
 | 
			
		||||
                `cd '${sourceDirectory}' && apt-get build-dep -yq -t '${imageTag}' . || apt-get build-dep -yq .`
 | 
			
		||||
            ])
 | 
			
		||||
            core.endGroup()
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue