We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ba9beb commit c91fc5aCopy full SHA for c91fc5a
1 file changed
.github/workflows/nix.yml
@@ -30,18 +30,12 @@ jobs:
30
- name: 🔎 Check whether development shell is already in binary cache
31
id: cache-check
32
run: |
33
- set -euo pipefail
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
41
- echo "cached=true" >> "$GITHUB_OUTPUT"
+ if nix path-info --store "$CACHE_URL" "$out_path" &>/dev/null; then
+ echo "cached=true"
42
else
43
- echo "cached=false" >> "$GITHUB_OUTPUT"
44
- fi
+ echo "cached=false"
+ fi >> "$GITHUB_OUTPUT"
45
46
- name: 📦 Build Nix development shell
47
if: steps.cache-check.outputs.cached == 'false'
0 commit comments