Compare commits

...

2 commits

Author SHA1 Message Date
Jan Wagner 8345de0de6 Change working dir and operate on .
Some checks failed
Test Action / test (amd64, -v, dropbear, debian/2022.83-1_bpo11+1, https://salsa.debian.org/debian/dropbear.git) (pull_request) Failing after 2m22s
Test Action / test (amd64, -v, true, micro, debian/2.0.6-2_bpo10+1, https://salsa.debian.org/go-team/packages/micro.git) (pull_request) Failing after 3m24s
Test Action / test (arm, -v, false, at, debian/3.2.2-1, https://salsa.debian.org/debian/at.git) (pull_request) Failing after 33s
Test Action / test (arm, -v, iproute2, import/4.18.0-1ubuntu2_ubuntu18.04.1, https://git.launchpad.net/ubuntu/+source/iproute2) (pull_request) Failing after 44s
Test Action / test (arm64, -v, lolcat, debian/100.0.1-2, https://salsa.debian.org/ruby-team/lolcat.git) (pull_request) Failing after 35s
Test Action / test (arm64, -v, netcat-openbsd, import/1.206-1ubuntu1, https://git.launchpad.net/ubuntu/+source/netcat-openbsd) (pull_request) Failing after 36s
Test Action / test (arm64, true, -v, deber, v1.0.0, https://github.com/dawidd6/deber.git) (pull_request) Failing after 12s
2024-01-06 15:53:07 +01:00
Jan Wagner 305eb46797 Adding some debugging output 2024-01-06 15:53:05 +01:00

22
main.js
View file

@ -95,6 +95,10 @@ async function main() {
console.log(details) console.log(details)
core.endGroup() core.endGroup()
core.startGroup("Check sourceDirectory")
await exec.exec("ls", ["-la", sourceDirectory])
core.endGroup()
if (cpuArchitecture != "amd64") { if (cpuArchitecture != "amd64") {
core.startGroup("Install QEMU") core.startGroup("Install QEMU")
// Need newer QEMU to avoid errors // Need newer QEMU to avoid errors
@ -127,6 +131,13 @@ async function main() {
]) ])
core.endGroup() core.endGroup()
core.startGroup("Show container ispect")
await exec.exec("docker", [
"inspect",
container
])
core.endGroup()
core.startGroup("Prepare environment") core.startGroup("Prepare environment")
await exec.exec("docker", [ await exec.exec("docker", [
"exec", "exec",
@ -183,13 +194,22 @@ async function main() {
]) ])
core.endGroup() core.endGroup()
core.startGroup("Check sourceDirectory")
await exec.exec("docker", [
"exec",
container,
"ls", "-la", sourceDirectory
])
core.endGroup()
if (imageTag != "trusty") { if (imageTag != "trusty") {
core.startGroup("Install build dependencies") core.startGroup("Install build dependencies")
await exec.exec("docker", [ await exec.exec("docker", [
"exec", "exec",
container, container,
"bash", "-c", "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() core.endGroup()
} }