File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -30,18 +30,12 @@ jobs:
3030 - name : 🔎 Check whether development shell is already in binary cache
3131 id : cache-check
3232 run : |
33- set -euo pipefail
34-
3533 out_path="$(nix eval --raw .#devShells.x86_64-linux.default.outPath)"
36- out_name="$(basename "$out_path")"
37- out_hash="${out_name%%-*}"
38-
39- if curl --fail --silent --show-error \
40- "$CACHE_URL/${out_hash}.narinfo" >/dev/null; then
41- echo "cached=true" >> "$GITHUB_OUTPUT"
34+ if nix path-info --store "$CACHE_URL" "$out_path" &>/dev/null; then
35+ echo "cached=true"
4236 else
43- echo "cached=false" >> "$GITHUB_OUTPUT"
44- fi
37+ echo "cached=false"
38+ fi >> "$GITHUB_OUTPUT"
4539
4640 - name : 📦 Build Nix development shell
4741 if : steps.cache-check.outputs.cached == 'false'
You can’t perform that action at this time.
0 commit comments