From 1677a7875cd4ece139937e3d5785281067b89502 Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Thu, 28 Mar 2024 11:22:04 +0000 Subject: [PATCH] fix: update architectures in snapcraft yaml rather than remove Ensure that Launchpad identifies each parallel build job as unique by using a new directory name for each architecture. --- release-to-candidate/action.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/release-to-candidate/action.yaml b/release-to-candidate/action.yaml index eb7cca7..61f6551 100644 --- a/release-to-candidate/action.yaml +++ b/release-to-candidate/action.yaml @@ -71,12 +71,12 @@ runs: version: ${{ steps.snapcraft-yaml.outputs.version }} project_root: ${{ steps.snapcraft-yaml.outputs.project-root }} run: | - # Remove the architecture definition from the snapcraft.yaml due to: + # Restrict arch definition to one only in snapcraft.yaml due to: # https://bugs.launchpad.net/snapcraft/+bug/1885150 - yq -i 'del(.architectures)' "$yaml_path" + yq -i '.architectures |= [{"build-on": env(arch)}]' "$yaml_path" - cd "$project_root" || exit - if ! snapcraft remote-build --launchpad-accept-public-upload --build-for="${arch}"; then + cd "$project_root" || exit + if ! snapcraft remote-build --launchpad-accept-public-upload"; then cat "${name}_${arch}.txt" fi