Mitchell Hashimoto b222cf33bd ci: swap magic-nix-cache with cachix
Cachix doesn't have rate limit issues like GitHub Actions does and I'd
love to support the Nix community. Plus, I have experience with Cachix
before and they've been so great.
2023-12-22 14:36:28 -08:00

19 lines
538 B
YAML

on: [push, pull_request]
name: Nix
jobs:
check-zig-cache-hash:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Nix
uses: cachix/install-nix-action@v24
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v12
with:
name: ghostty
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Check Zig cache hash
run: nix develop -c ./nix/build-support/check-zig-cache-hash.sh