File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " Nix Housekeeping"
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ workflow_dispatch : {}
8+
9+ jobs :
10+ shell :
11+ runs-on : ubuntu-latest
12+ permissions :
13+ contents : read
14+
15+ steps :
16+ - name : 📥 Clone repository
17+ uses : actions/checkout@v6
18+ with :
19+ repository : ${{ inputs.checkout_repo || github.repository }}
20+ ref : ${{ inputs.checkout_ref || '' }}
21+
22+ - name : ❄ Install Nix
23+ uses : DeterminateSystems/nix-installer-action@main
24+ with :
25+ extra-conf : |
26+ extra-substituters = https://graphite.cachix.org https://graphite-dev.cachix.org
27+ extra-trusted-public-keys = graphite.cachix.org-1:B7Il1yMpkquN/dXM+5GRmz+4Xmu2aaCS1GcWNfFhsOo= graphite-dev.cachix.org-1:RppXYpiV1qO2TYKTkXXGHsAEQDOB5G51b3VlrN9QmbI=
28+
29+ - name : 📦 Build Nix development shell
30+ run : nix build .#devShells.x86_64-linux.default --no-link --print-out-paths
31+
32+ - name : 📤 Push Nix development shell to binary cache
33+ env :
34+ NIX_CACHE_AUTH_TOKEN : ${{ secrets.NIX_CACHE_AUTH_TOKEN_DEV }}
35+ run : |
36+ nix run nixpkgs#cachix -- authtoken $NIX_CACHE_AUTH_TOKEN
37+ nix build .#devShells.x86_64-linux.default --no-link --print-out-paths | nix run nixpkgs#cachix -- push graphite-dev
You can’t perform that action at this time.
0 commit comments