Use for of loop
This commit is contained in:
parent
f8b27288a7
commit
97c52d5610
12
main.js
12
main.js
|
@ -124,13 +124,13 @@ async function main() {
|
||||||
// Add target architectures
|
// Add target architectures
|
||||||
//////////////////////////////////////
|
//////////////////////////////////////
|
||||||
if (targetArchitectures.length != 0) {
|
if (targetArchitectures.length != 0) {
|
||||||
targetArchitectures.forEach(targetArchitecture => {
|
for (const targetArchitecture of targetArchitectures) {
|
||||||
core.startGroup("Add target architecture: " + targetArchitecture)
|
core.startGroup("Add target architecture: " + targetArchitecture)
|
||||||
await exec.exec("docker", ["exec", container].concat(
|
await exec.exec("docker", ["exec", container].concat(
|
||||||
["dpkg", "--add-architecture", targetArchitecture]
|
["dpkg", "--add-architecture", targetArchitecture]
|
||||||
))
|
))
|
||||||
core.endGroup()
|
core.endGroup()
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////
|
//////////////////////////////////////
|
||||||
|
@ -154,9 +154,9 @@ async function main() {
|
||||||
]
|
]
|
||||||
|
|
||||||
// Used by pybuild
|
// Used by pybuild
|
||||||
targetArchitectures.forEach(targetArchitecture => {
|
for (const targetArchitecture of targetArchitectures) {
|
||||||
devPackages.concat("libpython3.7-minimal:" + targetArchitecture)
|
devPackages.concat("libpython3.7-minimal:" + targetArchitecture)
|
||||||
})
|
}
|
||||||
|
|
||||||
return devPackages
|
return devPackages
|
||||||
}
|
}
|
||||||
|
@ -177,7 +177,7 @@ async function main() {
|
||||||
//////////////////////////////////////
|
//////////////////////////////////////
|
||||||
// Build package and run static analysis for all architectures
|
// Build package and run static analysis for all architectures
|
||||||
//////////////////////////////////////
|
//////////////////////////////////////
|
||||||
targetArchitectures.forEach(targetArchitecture => {
|
for (const targetArchitecture of targetArchitectures) {
|
||||||
core.startGroup("Build package for architecture: " + targetArchitecture)
|
core.startGroup("Build package for architecture: " + targetArchitecture)
|
||||||
await exec.exec("docker", ["exec", container].concat(
|
await exec.exec("docker", ["exec", container].concat(
|
||||||
[
|
[
|
||||||
|
@ -194,7 +194,7 @@ async function main() {
|
||||||
.concat("*" + targetArchitecture + ".changes")
|
.concat("*" + targetArchitecture + ".changes")
|
||||||
))
|
))
|
||||||
core.endGroup()
|
core.endGroup()
|
||||||
})
|
}
|
||||||
|
|
||||||
//////////////////////////////////////
|
//////////////////////////////////////
|
||||||
// Move artifacts
|
// Move artifacts
|
||||||
|
|
Loading…
Reference in a new issue