Build snap arm64 target + drop publish_snap target #16491
Draft
+13
−35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upgrades to Snapcraft 8 and core22 from core(16), enables the arm64 architecture, and drops the publish job to avoid installing snapcraft twice. The snap files are no longer pushed as workspace artifacts.
Replaces the outdated Docker image build with a local install of snapd and snapcraft on the host Ubuntu machine, set to 22.04 to match core22 because we use the host build environment instead of LXD or multipass that would take much more time to setup for no purpose (no need for isolation).
Replaces the deprecated explicit login command (
snapcraft login --with) with an implicit login using theSNAPCRAFT_STORE_CREDENTIALSenvironment variable (we can still login explicitly but we can't have both the envvar and the explicit login: further commands would fail).Build job: https://app.circleci.com/pipelines/github/crystal-lang/crystal/20069/workflows/b8772de7-9028-4f67-8601-36b014ec37b9/jobs/96109
dist_snapas dependency fordist_artifacts