Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new remote-builder backend and misc improvement #36

Merged
merged 11 commits into from
Apr 22, 2024
6 changes: 5 additions & 1 deletion release-to-candidate/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ runs:
id: build
shell: bash
env:
SNAPCRAFT_REMOTE_BUILD_STRATEGY: "disable-fallback"
soumyaDghosh marked this conversation as resolved.
Show resolved Hide resolved
arch: ${{ inputs.architecture }}
name: ${{ steps.snapcraft-yaml.outputs.snap-name }}
yaml_path: ${{ steps.snapcraft-yaml.outputs.yaml-path }}
Expand All @@ -75,7 +76,7 @@ runs:
# https://bugs.launchpad.net/snapcraft/+bug/1885150
yq -i '.architectures |= [{"build-on": env(arch)}]' "$yaml_path"

cd "$project_root" || exit
cd "$project_root" && git init || exit
jnsgruk marked this conversation as resolved.
Show resolved Hide resolved
if ! snapcraft remote-build --launchpad-accept-public-upload; then
cat "${name}_${arch}.txt"
fi
Expand All @@ -89,6 +90,9 @@ runs:

# Write the manifest file which is used by later steps
echo "snap=${name}_${version}_${arch}.snap" >> "$GITHUB_OUTPUT"
if [[ -n "$project_root" ]]; then
echo "snap=${project_root}/${name}_${version}_${arch}.snap" >> "$GITHUB_OUTPUT"
fi
echo "name: ${name}" >> "manifest-${arch}.yaml"
echo "architecture: ${arch}" >> "manifest-${arch}.yaml"

Expand Down