Add snap to nix, add arm64 builders

This commit is contained in:
Mitchell Hashimoto
2025-01-08 10:22:17 -08:00
parent 2e0e8af1ad
commit f1f23e1c7d
3 changed files with 28 additions and 8 deletions

View File

@ -8,8 +8,26 @@ on:
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-24.04
build-amd64:
runs-on: namespace-profile-ghostty-snap
steps:
- uses: actions/checkout@v4
- uses: snapcore/action-build@v1
- uses: actions/checkout@v4
- name: Setup Cache
uses: namespacelabs/nscloud-cache-action@v1.2.0
with:
path: |
/nix
/zig
- uses: snapcore/action-build@v1
build-arm64:
runs-on: namespace-profile-ghostty-snap-arm64
steps:
- uses: actions/checkout@v4
- name: Setup Cache
uses: namespacelabs/nscloud-cache-action@v1.2.0
with:
path: |
/nix
/zig
- uses: snapcore/action-build@v1

View File

@ -14,6 +14,7 @@
python3,
qemu,
scdoc,
snapcraft,
valgrind,
#, vulkan-loader # unused
vttest,
@ -105,6 +106,7 @@ in
pandoc
pkg-config
scdoc
snapcraft
zig
zip
zig2nix.packages.${system}.zon2nix

View File

@ -20,9 +20,9 @@ platforms:
apps:
ghostty:
command: bin/ghostty
command-chain: [ bin/launcher ]
command-chain: [bin/launcher]
completer: share/bash-completion/completions/ghostty.bash
desktop: share/applications/com.mitchellh.ghostty.desktop
desktop: share/applications/com.mitchellh.ghostty.desktop
environment:
PATH: /snap/ghostty/current/bin:/snap/ghostty/current/usr/bin:$PATH
LC_ALL: C.UTF-8
@ -65,9 +65,9 @@ parts:
ghostty:
source: .
after: [ zig ]
after: [zig]
plugin: nil
build-attributes: [ enable-patchelf ]
build-attributes: [enable-patchelf]
build-packages:
- libgtk-4-dev
- libadwaita-1-dev