-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gtk: add option to not link against libX11 (#3748)
Possible fix for #3477. Needs testing.
- Loading branch information
Showing
11 changed files
with
154 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -329,16 +329,62 @@ jobs: | |
- name: Test GTK Build | ||
run: nix develop -c zig build -Dapp-runtime=gtk -Dgtk-adwaita=true -Demit-docs | ||
|
||
- name: Test GTK Build (No Libadwaita) | ||
run: nix develop -c zig build -Dapp-runtime=gtk -Dgtk-adwaita=false -Demit-docs | ||
|
||
- name: Test GLFW Build | ||
run: nix develop -c zig build -Dapp-runtime=glfw | ||
|
||
# This relies on the cache being populated by the commands above. | ||
- name: Test System Build | ||
run: nix develop -c zig build --system ${ZIG_GLOBAL_CACHE_DIR}/p | ||
|
||
test-gtk: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
adwaita: ["true", "false"] | ||
x11: ["true", "false"] | ||
name: GTK adwaita=${{ matrix.adwaita }} x11=${{ matrix.x11 }} | ||
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@v4 | ||
|
||
- name: Setup Cache | ||
uses: namespacelabs/[email protected] | ||
with: | ||
path: | | ||
/nix | ||
/zig | ||
# Install Nix and use that to run our tests so our environment matches exactly. | ||
- uses: cachix/install-nix-action@v30 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- uses: cachix/cachix-action@v15 | ||
with: | ||
name: ghostty | ||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | ||
|
||
- name: Test GTK Build | ||
run: | | ||
nix develop -c \ | ||
zig build \ | ||
-Dapp-runtime=gtk \ | ||
-Dgtk-adwaita=${{ matrix.adwaita }} \ | ||
-Dgtk-x11=${{ matrix.x11 }} | ||
# Install Nix and use that to run our tests so our environment matches exactly. | ||
- uses: cachix/install-nix-action@v30 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- uses: cachix/cachix-action@v15 | ||
with: | ||
name: ghostty | ||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | ||
|
||
test-macos: | ||
runs-on: namespace-profile-ghostty-macos | ||
needs: test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters