Skip to content

Commit 866991d

Browse files
test
1 parent 8a62c8b commit 866991d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -646,12 +646,13 @@ jobs:
646646
run: |
647647
STORE_PATH=$(nix eval --raw .#graphite${{ inputs.debug && '-dev' || '' }}.deps)
648648
echo "Store path: $STORE_PATH"
649-
echo "Checking if path exists in remote cache..."
650-
nix path-info --store https://graphite-dev.cachix.org "$STORE_PATH" && echo "✓ Found in cache" || echo "✗ NOT in cache"
651-
echo "Checking path info with all substituters..."
652-
nix path-info "$STORE_PATH" --store https://graphite-dev.cachix.org --json | head -c 1000 || true
653-
echo "Building..."
654-
nix build .#graphite${{ inputs.debug && '-dev' || '' }}.deps --no-link --print-out-paths --print-build-logs -v
649+
echo "Attempting to copy from cache..."
650+
if nix copy --from https://graphite-dev.cachix.org "$STORE_PATH" 2>&1; then
651+
echo "✓ Copied from cache"
652+
else
653+
echo "✗ Not in cache, building..."
654+
nix build .#graphite${{ inputs.debug && '-dev' || '' }}.deps --no-link --print-out-paths --print-build-logs
655+
fi
655656
656657
- name: 📦 Build Nix package
657658
run: nix build .#graphite${{ inputs.debug && '-dev' || '' }} --no-link --print-out-paths --print-build-logs

0 commit comments

Comments
 (0)