mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-19 18:26:13 +03:00
ci: test gtk-ng
This commit is contained in:
53
.github/workflows/test.yml
vendored
53
.github/workflows/test.yml
vendored
@ -25,6 +25,7 @@ jobs:
|
|||||||
- flatpak
|
- flatpak
|
||||||
- test
|
- test
|
||||||
- test-gtk
|
- test-gtk
|
||||||
|
- test-gtk-ng
|
||||||
- test-sentry-linux
|
- test-sentry-linux
|
||||||
- test-macos
|
- test-macos
|
||||||
- pinact
|
- pinact
|
||||||
@ -529,6 +530,9 @@ jobs:
|
|||||||
- name: Test GTK Build
|
- name: Test GTK Build
|
||||||
run: nix develop -c zig build -Dapp-runtime=gtk -Demit-docs -Demit-webdata
|
run: nix develop -c zig build -Dapp-runtime=gtk -Demit-docs -Demit-webdata
|
||||||
|
|
||||||
|
- name: Test GTK-NG Build
|
||||||
|
run: nix develop -c zig build -Dapp-runtime=gtk-ng -Demit-docs -Demit-webdata
|
||||||
|
|
||||||
# This relies on the cache being populated by the commands above.
|
# This relies on the cache being populated by the commands above.
|
||||||
- name: Test System Build
|
- name: Test System Build
|
||||||
run: nix develop -c zig build --system ${ZIG_GLOBAL_CACHE_DIR}/p
|
run: nix develop -c zig build --system ${ZIG_GLOBAL_CACHE_DIR}/p
|
||||||
@ -582,6 +586,55 @@ jobs:
|
|||||||
-Dgtk-x11=${{ matrix.x11 }} \
|
-Dgtk-x11=${{ matrix.x11 }} \
|
||||||
-Dgtk-wayland=${{ matrix.wayland }}
|
-Dgtk-wayland=${{ matrix.wayland }}
|
||||||
|
|
||||||
|
test-gtk-ng:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
x11: ["true", "false"]
|
||||||
|
wayland: ["true", "false"]
|
||||||
|
name: GTK x11=${{ matrix.x11 }} wayland=${{ matrix.wayland }}
|
||||||
|
runs-on: namespace-profile-ghostty-sm
|
||||||
|
needs: test
|
||||||
|
env:
|
||||||
|
ZIG_LOCAL_CACHE_DIR: /zig/local-cache
|
||||||
|
ZIG_GLOBAL_CACHE_DIR: /zig/global-cache
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|
||||||
|
- name: Setup Cache
|
||||||
|
uses: namespacelabs/nscloud-cache-action@c343d6c4c2c3268bbec55c542f096f74130eb22c # v1.2.12
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
/nix
|
||||||
|
/zig
|
||||||
|
|
||||||
|
# Install Nix and use that to run our tests so our environment matches exactly.
|
||||||
|
- uses: cachix/install-nix-action@c134e4c9e34bac6cab09cf239815f9339aaaf84e # v31.5.1
|
||||||
|
with:
|
||||||
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
- uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
|
||||||
|
with:
|
||||||
|
name: ghostty
|
||||||
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: |
|
||||||
|
nix develop -c \
|
||||||
|
zig build \
|
||||||
|
-Dapp-runtime=gtk-ng \
|
||||||
|
-Dgtk-x11=${{ matrix.x11 }} \
|
||||||
|
-Dgtk-wayland=${{ matrix.wayland }} \
|
||||||
|
test
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
nix develop -c \
|
||||||
|
zig build \
|
||||||
|
-Dapp-runtime=gtk-ng \
|
||||||
|
-Dgtk-x11=${{ matrix.x11 }} \
|
||||||
|
-Dgtk-wayland=${{ matrix.wayland }}
|
||||||
|
|
||||||
test-sentry-linux:
|
test-sentry-linux:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
Reference in New Issue
Block a user