Skip to content

Commit

Permalink
Hash for data (#47)
Browse files Browse the repository at this point in the history
* CI: Hash for net diff cache
  • Loading branch information
mj-xmr committed May 27, 2022
1 parent e37edb0 commit c652c32
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@ jobs:
path: externals/tsqsim/build/data/data/txt
key: data-${{ hashFiles('externals/tsqsim/data/data/txt/**/*') }}
restore-keys: data-${{ hashFiles('externals/tsqsim/data/data/txt/**/*') }}
# Expendable, volatile & large cache
- name: diff cache
uses: actions/cache@v2
with:
path: /tmp/diff_XMR.pkl
key: data-diff
restore-keys: data-diff
key: data-diff-${{ hashFiles('/tmp/diff_XMR.*') }}
restore-keys: |
data-diff-${{ hashFiles('/tmp/diff_XMR.*') }}
data-diff
# - name: deps cache
# uses: actions/cache@v2
# with:
Expand Down Expand Up @@ -100,12 +103,15 @@ jobs:
path: build/data/data/txt
key: data-${{ hashFiles('build/data/data/txt/**/*') }}
restore-keys: data-${{ hashFiles('build/data/data/txt/**/*') }}
# Expendable, volatile & large cache
- name: diff cache
uses: actions/cache@v2
with:
path: /tmp/diff_XMR.pkl
key: data-diff
restore-keys: data-diff
key: data-diff-${{ hashFiles('/tmp/diff_XMR.*') }}
restore-keys: |
data-diff-${{ hashFiles('/tmp/diff_XMR.*') }}
data-diff
- name: prepare environment
run: util/prep-env.sh
- name: install dependencies
Expand Down

0 comments on commit c652c32

Please sign in to comment.