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: {} workflow_dispatch: {}
jobs: jobs:
build: build-amd64:
runs-on: ubuntu-24.04 runs-on: namespace-profile-ghostty-snap
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: snapcore/action-build@v1 - 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, python3,
qemu, qemu,
scdoc, scdoc,
snapcraft,
valgrind, valgrind,
#, vulkan-loader # unused #, vulkan-loader # unused
vttest, vttest,
@ -105,6 +106,7 @@ in
pandoc pandoc
pkg-config pkg-config
scdoc scdoc
snapcraft
zig zig
zip zip
zig2nix.packages.${system}.zon2nix zig2nix.packages.${system}.zon2nix

View File

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