snapcore / action-build

A Github action for building Snapcraft projects
MIT License
42 stars 21 forks source link

Support snapcraft --destructive-mode #69

Open jonathanudd opened 9 months ago

jonathanudd commented 9 months ago

I'm currently using a self-hosted Github runner which runs inside a lxc container and I need to use the --destructive-mode argument for snapcraft. Is this something that could be supported by this action or I'm I better of installing snapcraft and running snapcraft with individual steps?

jhenstridge commented 1 month ago

The value add of this action is configuring the VM so that Snapcraft can perform the build in an LXD container. If you were going to do a --destructive-mode build, you might be better off just calling Snapcraft directly.

With that said, LXD supports nested containers with appropriate configuration: https://ubuntu.com/blog/nested-containers-in-lxd -- that might let you use the action as is.