Skip to content

Commit

Permalink
don't fail if doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
PastaPastaPasta committed Aug 12, 2024
1 parent 2bd2c37 commit 1bfb68d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/guix-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,13 @@ jobs:
-w /src/dash \
ghcr.io/${{ needs.build-image.outputs.repo-name }}/dashcore-guix-builder:${{ needs.build-image.outputs.image-tag }}
- name: Restoore Guix Cache
- name: Restore Guix Cache
run: |
docker exec guix-daemon bash -c 'cat ~/.cache/guix-archive.nar | guix archive --import'
if docker exec guix-daemon bash -c '[[ -f ~/.cache/guix-archive.nar ]]'; then
docker exec guix-daemon bash -c 'cat ~/.cache/guix-archive.nar | guix archive --import'
else
echo "guix-archive.nar does not exist, skipping import."
fi
- name: Run Guix build
timeout-minutes: 480
Expand Down

0 comments on commit 1bfb68d

Please sign in to comment.