Skip to content

Commit

Permalink
fixup! Cache internal CCD in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
padix-key committed Nov 1, 2024
1 parent 940ce7c commit 0bc3e48
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,16 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PY_VERSION }}
- name: Get current CCD
run: wget https://files.wwpdb.org/pub/pdb/data/monomers/components.cif.gz -O /tmp/components.cif.gz
- name: Get current CCD for hashing
run: wget https://files.wwpdb.org/pub/pdb/data/monomers/components.cif.gz
- name: Cache CCD
uses: actions/cache@v4
id: cache-ccd
with:
path: ./src/biotite/structure/info/components.bcif
key: cache-${{ hashFiles('setup_ccd.py') }}-${{ hashFiles('/tmp/components.cif.gz') }}
key: cache-${{ hashFiles('setup_ccd.py') }}-${{ hashFiles('components.cif.gz') }}
- name: Remove CCD used for hashing
run: rm components.cif.gz
- name: Build internal CCD
if: steps.cache-ccd.outputs.cache-hit != 'true'
run: |
Expand Down

0 comments on commit 0bc3e48

Please sign in to comment.