Skip to content

Commit 8a62c8b

Browse files
test
1 parent baf5a62 commit 8a62c8b

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -637,19 +637,21 @@ jobs:
637637
with:
638638
extra-conf: |
639639
extra-substituters = https://graphite.cachix.org https://graphite-dev.cachix.org
640-
extra-trusted-substituters = https://graphite.cachix.org https://graphite-dev.cachix.org
641640
extra-trusted-public-keys = graphite.cachix.org-1:B7Il1yMpkquN/dXM+5GRmz+4Xmu2aaCS1GcWNfFhsOo= graphite-dev.cachix.org-1:RppXYpiV1qO2TYKTkXXGHsAEQDOB5G51b3VlrN9QmbI=
642641
643642
- name: 🗑 Free disk space
644643
run: sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache
645644

646645
- name: 📦 Build Nix package deps
647646
run: |
648-
HASH=$(nix eval --raw .#graphite${{ inputs.debug && '-dev' || '' }}.deps | cut -c12-43)
649-
curl https://graphite-dev.cachix.org/${HASH}.narinfo
650-
echo $HASH
651-
echo "https://graphite-dev.cachix.org/${HASH}.narinfo"
652-
nix build .#graphite${{ inputs.debug && '-dev' || '' }}.deps --no-link --print-out-paths --print-build-logs
647+
STORE_PATH=$(nix eval --raw .#graphite${{ inputs.debug && '-dev' || '' }}.deps)
648+
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
653655
654656
- name: 📦 Build Nix package
655657
run: nix build .#graphite${{ inputs.debug && '-dev' || '' }} --no-link --print-out-paths --print-build-logs

0 commit comments

Comments
 (0)