diff --git a/action.yml b/action.yml index 6c429a4..2c253be 100644 --- a/action.yml +++ b/action.yml @@ -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: "" diff --git a/main.js b/main.js index c5e26b2..31086d6 100644 --- a/main.js +++ b/main.js @@ -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",