File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,21 @@ jobs:
2727 extra-substituters = https://graphite.cachix.org https://graphite-dev.cachix.org
2828 extra-trusted-public-keys = graphite.cachix.org-1:B7Il1yMpkquN/dXM+5GRmz+4Xmu2aaCS1GcWNfFhsOo= graphite-dev.cachix.org-1:RppXYpiV1qO2TYKTkXXGHsAEQDOB5G51b3VlrN9QmbI=
2929
30+ - name : 🔎 Check whether dev shell is already in Cachix
31+ id : cache-check
32+ run : |
33+ if nix path-info --store "https://graphite-dev.cachix.org" .#devShells.x86_64-linux.default >/dev/null 2>&1; then
34+ echo "cached=true" >> "$GITHUB_OUTPUT"
35+ else
36+ echo "cached=false" >> "$GITHUB_OUTPUT"
37+ fi
38+
3039 - name : 📦 Build Nix development shell
40+ if : steps.cache-check.outputs.cached == 'false'
3141 run : nix build .#devShells.x86_64-linux.default --no-link --print-out-paths
3242
3343 - name : 📤 Push Nix development shell to binary cache
44+ if : steps.cache-check.outputs.cached == 'false'
3445 env :
3546 NIX_CACHE_AUTH_TOKEN : ${{ secrets.NIX_CACHE_AUTH_TOKEN_DEV }}
3647 run : |
You can’t perform that action at this time.
0 commit comments