Skip to content

Commit 2ba9beb

Browse files
test
1 parent ac9fe0c commit 2ba9beb

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/nix.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ jobs:
3131
id: cache-check
3232
run: |
3333
set -euo pipefail
34-
if nix path-info --store "https://graphite-dev.cachix.org" .#devShells.x86_64-linux.default >/dev/null 2>&1; then
34+
35+
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
3541
echo "cached=true" >> "$GITHUB_OUTPUT"
3642
else
3743
echo "cached=false" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)