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 required: false
default: "./" default: "./"
target_architectures: target_architectures:
description: Target architectures to build for description: Comma-separated options list of target architectures to build for
required: false required: false
default: "" default: ""
dpkg_buildpackage_opts: 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 required: false
default: "--no-sign, -d" default: "--no-sign, -d"
lintian_opts: 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 required: false
default: "" default: ""

16
main.js
View file

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