Skip to content

Commit

Permalink
Cache generated benchmark data.
Browse files Browse the repository at this point in the history
  • Loading branch information
trexfeathers committed Jan 5, 2022
1 parent 1e7b6a0 commit 83eef27
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
IRIS_TEST_DATA_VERSION: "2.5"
# Lets us manually bump the cache to rebuild
TEST_DATA_CACHE_BUILD: "2"
GEN_DATA_CACHE_BUILD: "1"
PY_VER: 3.8

steps:
Expand Down Expand Up @@ -56,6 +57,13 @@ jobs:
key:
test-data-${{ env.IRIS_TEST_DATA_VERSION }}-${{ env.TEST_DATA_CACHE_BUILD }}

- name: Cache generated data directory
id: cache-generated-data
uses: actions/cache@v2
with:
path: benchmarks/.data
key: ${{ hashFiles('benchmarks/data') }}-${{ env.GEN_DATA_CACHE_BUILD }}

- name: Fetch the test data
if: steps.cache-test-data.outputs.cache-hit != 'true'
run: |
Expand Down

0 comments on commit 83eef27

Please sign in to comment.