But wait, there's more

This commit is contained in:
Mike Roberts 2020-10-28 22:35:25 +00:00
parent 527ab8dc10
commit ec3a87fa1d
No known key found for this signature in database
GPG key ID: B68562622B45F745
2 changed files with 11 additions and 11 deletions

View file

@ -13,15 +13,15 @@ inputs:
required: false
default: "./"
target_architectures:
description: Target architectures to build for
description: Comma-separated options list of target architectures to build for
required: false
default: ""
dpkg_buildpackage_opts:
description: Options list provided to 'dpkg-buildpackage' as command line parameters (note that '-a' is automatically provided for target architectures specified by target_architectures)
description: Comma-separated options list provided to 'dpkg-buildpackage' as command line parameters (note that '-a' is automatically provided for target architectures specified by target_architectures)
required: false
default: "--no-sign, -d"
lintian_opts:
description: Options list provided to 'lintian' as command line parameters
description: Comma-separated options list provided to 'lintian' as command line parameters
required: false
default: ""

16
main.js
View file

@ -105,7 +105,7 @@ async function main() {
core.endGroup()
if (revision) {
runDockerExecStep("Create tarball", [
await runDockerExecStep("Create tarball", [
"tar",
"--exclude-vcs",
"--exclude", "./debian",
@ -118,14 +118,14 @@ async function main() {
if (targetArchitectures.length != 0) {
targetArchitectures.forEach(targetArchitecture => {
runDockerExecStep(
await runDockerExecStep(
"Add target architecture: " + targetArchitecture,
["dpkg", "--add-architecture", targetArchitecture]
)
})
}
runDockerExecStep(
await runDockerExecStep(
"Update packages list",
["apt-get", "update"]
)
@ -145,27 +145,27 @@ async function main() {
return devPackages
}
runDockerExecStep(
await runDockerExecStep(
"Install development packages",
[
"apt-get", "install", "--no-install-recommends", "-y"
].concat(getDevPackages())
)
runDockerExecStep(
await runDockerExecStep(
"Install build dependencies",
["apt-get", "build-dep", "-y", sourceDirectory]
)
targetArchitectures.forEach(targetArchitecture => {
runDockerExecStep(
await runDockerExecStep(
"Build package for architecture: " + targetArchitecture,
[
"dpkg-buildpackage",
"-a" + targetArchitecture
].concat(dpkgBuildPackageOpts)
)
runDockerExecStep(
await runDockerExecStep(
"Run static analysis",
["lintian"]
.concat(lintianOpts)
@ -173,7 +173,7 @@ async function main() {
)
})
runDockerExecStep(
await runDockerExecStep(
"Move artifacts",
[
"find",