Skip to content

CI: build snap without snapcore/action-build#4527

Merged
bjorn merged 2 commits into
masterfrom
inline-snap-build
May 23, 2026
Merged

CI: build snap without snapcore/action-build#4527
bjorn merged 2 commits into
masterfrom
inline-snap-build

Conversation

@bjorn
Copy link
Copy Markdown
Member

@bjorn bjorn commented May 22, 2026

Summary

snapcore/action-build appears effectively unmaintained: snapcore/action-build#1 (updating the action's Node.js runtime to node24) has been open since April with no maintainer response. As GitHub's node20 deprecation rolls in, this action becomes a liability.

Replace it with two inline steps:

  1. sudo snap install --classic snapcraft
  2. sudo snapcraft --destructive-mode, with the same SNAPCRAFT_BUILD_INFO and SNAPCRAFT_IMAGE_INFO env vars the action used to set.

--destructive-mode builds directly on the runner (no LXD), which is faster and simpler. The job is pinned to ubuntu-24.04 so the host always matches the snap's base: core24.

Test plan

  • CI runs the Linux (snap) job and produces tiled_*_amd64.snap
  • Resulting snap contains snap/manifest.yaml (from SNAPCRAFT_BUILD_INFO=1)

bjorn added 2 commits May 23, 2026 01:40
The action is effectively unmaintained (snapcore/action-build#1 has
been open since April with no maintainer response). Replace it with a
direct snapcraft invocation using --destructive-mode, which builds on
the runner host instead of in LXD. Pin the job to ubuntu-24.04 so the
host matches the snap's core24 base.
This step set a snap_channel output that's not consumed anywhere; the
last consumer was removed in d3530f4 when snap releases stopped
happening from GitHub Actions.
@bjorn bjorn merged commit f4fcfcf into master May 23, 2026
12 of 16 checks passed
@bjorn bjorn deleted the inline-snap-build branch May 23, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant