aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/.github/workflows/snap.yml
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-04-04 19:22:04 +0300
committerCan Celik <ogulcancelik@gmail.com>2026-04-05 01:23:06 +0300
commit41dd733ca7123c9ac4bfc6c781697a660e95b052 (patch)
tree3fc91815ca139ef2e0b281bba0abda4ef15175f4 /vendor/libghostty-vt/.github/workflows/snap.yml
parent55c138263e190a1e79d4b997bfb9397306c0ec1f (diff)
feat: finish ghostty pane backend integration
Diffstat (limited to 'vendor/libghostty-vt/.github/workflows/snap.yml')
-rw-r--r--vendor/libghostty-vt/.github/workflows/snap.yml59
1 files changed, 59 insertions, 0 deletions
diff --git a/vendor/libghostty-vt/.github/workflows/snap.yml b/vendor/libghostty-vt/.github/workflows/snap.yml
new file mode 100644
index 00000000..67f29160
--- /dev/null
+++ b/vendor/libghostty-vt/.github/workflows/snap.yml
@@ -0,0 +1,59 @@
+on:
+ workflow_dispatch:
+ inputs:
+ source-run-id:
+ description: run id of the workflow that generated the artifact
+ required: true
+ type: string
+ source-artifact-id:
+ description: source tarball built during build-dist
+ required: true
+ type: string
+
+name: Snap
+
+jobs:
+ build:
+ strategy:
+ fail-fast: false
+ matrix:
+ os:
+ [namespace-profile-ghostty-snap, namespace-profile-ghostty-snap-arm64]
+ runs-on: ${{ matrix.os }}
+ timeout-minutes: 45
+ env:
+ ZIG_LOCAL_CACHE_DIR: /zig/local-cache
+ ZIG_GLOBAL_CACHE_DIR: /zig/global-cache
+ steps:
+ - name: Download Source Tarball Artifacts
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
+ with:
+ run-id: ${{ inputs.source-run-id }}
+ artifact-ids: ${{ inputs.source-artifact-id }}
+ github-token: ${{ github.token }}
+
+ - name: Extract tarball
+ run: |
+ mkdir dist
+ tar --verbose --extract --strip-components 1 --directory dist --file ghostty-source.tar.gz
+
+ - name: Setup Cache
+ uses: namespacelabs/nscloud-cache-action@a90bb5d4b27522ce881c6e98eebd7d7e6d1653f9 # v1.4.2
+ with:
+ path: |
+ /nix
+ /zig
+
+ - run: sudo apt install -y udev
+
+ - run: sudo systemctl start systemd-udevd
+
+ # Workaround until this is fixed: https://github.com/canonical/lxd-pkg-snap/pull/789
+ - run: |
+ _LXD_SNAP_DEVCGROUP_CONFIG="/var/lib/snapd/cgroup/snap.lxd.device"
+ sudo mkdir -p /var/lib/snapd/cgroup
+ echo 'self-managed=true' | sudo tee "${_LXD_SNAP_DEVCGROUP_CONFIG}"
+
+ - uses: snapcore/action-build@3bdaa03e1ba6bf59a65f84a751d943d549a54e79 # v1.3.0
+ with:
+ path: dist