|
22 | 22 | - build-macos-matrix |
23 | 23 | - build-windows |
24 | 24 | - test |
25 | | - - test-gtk |
26 | 25 | - test-gtk-ng |
27 | 26 | - test-sentry-linux |
28 | 27 | - test-macos |
@@ -492,65 +491,13 @@ jobs: |
492 | 491 | - name: test |
493 | 492 | run: nix develop -c zig build -Dapp-runtime=none test |
494 | 493 |
|
495 | | - - name: Test GTK Build |
496 | | - run: nix develop -c zig build -Dapp-runtime=gtk -Demit-docs -Demit-webdata |
497 | | - |
498 | 494 | - name: Test GTK-NG Build |
499 | 495 | run: nix develop -c zig build -Dapp-runtime=gtk-ng -Demit-docs -Demit-webdata |
500 | 496 |
|
501 | 497 | # This relies on the cache being populated by the commands above. |
502 | 498 | - name: Test System Build |
503 | 499 | run: nix develop -c zig build --system ${ZIG_GLOBAL_CACHE_DIR}/p |
504 | 500 |
|
505 | | - test-gtk: |
506 | | - strategy: |
507 | | - fail-fast: false |
508 | | - matrix: |
509 | | - x11: ["true", "false"] |
510 | | - wayland: ["true", "false"] |
511 | | - name: GTK x11=${{ matrix.x11 }} wayland=${{ matrix.wayland }} |
512 | | - runs-on: namespace-profile-ghostty-sm |
513 | | - needs: test |
514 | | - env: |
515 | | - ZIG_LOCAL_CACHE_DIR: /zig/local-cache |
516 | | - ZIG_GLOBAL_CACHE_DIR: /zig/global-cache |
517 | | - steps: |
518 | | - - name: Checkout code |
519 | | - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
520 | | - |
521 | | - - name: Setup Cache |
522 | | - uses: namespacelabs/nscloud-cache-action@a289cf5d2fcd6874376aa92f0ef7f99dc923592a # v1.2.17 |
523 | | - with: |
524 | | - path: | |
525 | | - /nix |
526 | | - /zig |
527 | | -
|
528 | | - # Install Nix and use that to run our tests so our environment matches exactly. |
529 | | - - uses: cachix/install-nix-action@56a7bb7b56d9a92d4fd1bc05758de7eea4a370a8 # v31.6.0 |
530 | | - with: |
531 | | - nix_path: nixpkgs=channel:nixos-unstable |
532 | | - - uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16 |
533 | | - with: |
534 | | - name: ghostty |
535 | | - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" |
536 | | - |
537 | | - - name: Test |
538 | | - run: | |
539 | | - nix develop -c \ |
540 | | - zig build \ |
541 | | - -Dapp-runtime=gtk \ |
542 | | - -Dgtk-x11=${{ matrix.x11 }} \ |
543 | | - -Dgtk-wayland=${{ matrix.wayland }} \ |
544 | | - test |
545 | | -
|
546 | | - - name: Build |
547 | | - run: | |
548 | | - nix develop -c \ |
549 | | - zig build \ |
550 | | - -Dapp-runtime=gtk \ |
551 | | - -Dgtk-x11=${{ matrix.x11 }} \ |
552 | | - -Dgtk-wayland=${{ matrix.wayland }} |
553 | | -
|
554 | 501 | test-gtk-ng: |
555 | 502 | strategy: |
556 | 503 | fail-fast: false |
|
0 commit comments