ci: install nix

This commit is contained in:
Mitchell Hashimoto
2024-12-28 14:38:21 -08:00
parent f95aa32965
commit a55bea3491

View File

@ -342,6 +342,7 @@ jobs:
matrix: matrix:
adwaita: ["true", "false"] adwaita: ["true", "false"]
x11: ["true", "false"] x11: ["true", "false"]
name: GTK adwaita=${{ matrix.adwaita }} x11=${{ matrix.x11 }}
runs-on: namespace-profile-ghostty-sm runs-on: namespace-profile-ghostty-sm
needs: test needs: test
env: env:
@ -358,6 +359,15 @@ jobs:
/nix /nix
/zig /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 - name: Test GTK Build
run: | run: |
nix develop -c \ nix develop -c \