Skip to content

Commit

Permalink
fix: update architectures in snapcraft yaml rather than remove
Browse files Browse the repository at this point in the history
Ensure that Launchpad identifies each parallel build job
as unique by using a new directory name for each architecture.
  • Loading branch information
jnsgruk committed Mar 28, 2024
1 parent 50de16a commit 1677a78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions release-to-candidate/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1677a78

Please sign in to comment.