Move dev package list to function
This commit is contained in:
parent
93bf571de0
commit
8f1b65a4d2
|
@ -13,7 +13,7 @@ inputs:
|
||||||
required: false
|
required: false
|
||||||
default: "./"
|
default: "./"
|
||||||
target_architectures:
|
target_architectures:
|
||||||
description: Target architecture of Debian package to build
|
description: Target architectures to build for
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
dpkg_buildpackage_opts:
|
dpkg_buildpackage_opts:
|
||||||
|
|
27
main.js
27
main.js
|
@ -130,21 +130,26 @@ async function main() {
|
||||||
["apt-get", "update"]
|
["apt-get", "update"]
|
||||||
)
|
)
|
||||||
|
|
||||||
args = [
|
function getDevPackages() {
|
||||||
"apt-get", "install", "--no-install-recommends", "-y",
|
devPackages = [
|
||||||
// General packaging stuff
|
// General packaging stuff
|
||||||
"dpkg-dev",
|
"dpkg-dev",
|
||||||
"debhelper",
|
"debhelper",
|
||||||
"lintian"
|
"lintian"
|
||||||
]
|
]
|
||||||
|
|
||||||
// Used by pybuild
|
// Used by pybuild
|
||||||
for (targetArchitecture in targetArchitectures) {
|
for (targetArchitecture in targetArchitectures) {
|
||||||
args.concat("libpython3.7-minimal:" + targetArchitecture)
|
devPackages.concat("libpython3.7-minimal:" + targetArchitecture)
|
||||||
|
}
|
||||||
|
|
||||||
|
return devPackages
|
||||||
}
|
}
|
||||||
runDockerExecStep(
|
runDockerExecStep(
|
||||||
"Install development packages",
|
"Install development packages",
|
||||||
args
|
[
|
||||||
|
"apt-get", "install", "--no-install-recommends", "-y"
|
||||||
|
].concat(getDevPackages())
|
||||||
)
|
)
|
||||||
|
|
||||||
runDockerExecStep(
|
runDockerExecStep(
|
||||||
|
|
Loading…
Reference in a new issue