Skip to content

Commit

Permalink
fix: download then extract
Browse files Browse the repository at this point in the history
  • Loading branch information
whichqua committed Aug 27, 2024
1 parent 535c8a2 commit 8e23d00
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,21 @@ jobs:
sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
rm -f $PROTOC_ZIP
# - name: Cache Db
# id: cache-db
# uses: actions/cache@v3
# with:
# path: |
# $HOME/pathfinder-data/testnet-sepolia.sqlite
- name: Cache Db
id: cache-db
uses: actions/cache@v3
with:
path: |
sepolia-testnet.sqlite.zst
- name: Download and extract database file
if: ${{ steps.cache-db.outputs.cache-hit != 'true' }}
run: |
mkdir -p $HOME/pathfinder-data
curl -L ${{ secrets.PATHFINDER_ARCHIVE_URL }} -o sepolia-testnet.sqlite.zst
zstd -d sepolia-testnet.sqlite.zst -o $HOME/pathfinder-data/testnet-sepolia.sqlite
- name: Extract
run: zstd -T0 -d sepolia-testnet.sqlite.zst -o $HOME/pathfinder-data/testnet-sepolia.sqlite

- name: Pull Pathfinder Docker image
run: |
Expand Down

0 comments on commit 8e23d00

Please sign in to comment.