File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments