Compare commits
2 commits
8345de0de6
...
fb3b89c375
Author | SHA1 | Date | |
---|---|---|---|
Jan Wagner | fb3b89c375 | ||
Jan Wagner | d8b7e85de5 |
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…
Reference in a new issue