Skip to content

Commit

Permalink
add cache keys
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Jun 8, 2023
1 parent f728fd6 commit 8cbd460
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ jobs:
python=${{ matrix.python-version }}
conda
cache-environment: true
cache-environment-key: cache-environment-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('environment.yaml') }}
cache-downloads: true
cache-downloads-key: cache-downloads-${{ runner.os}}-${{ runner.arch}}-${{ hashFiles('environment.yaml') }}
init-shell: none
generate-run-shell: true
- run: conda env export --no-build | grep -v "name:" | grep -v "prefix:"
Expand Down Expand Up @@ -94,7 +96,9 @@ jobs:
python=${{ matrix.python-version }}
conda
cache-environment: true
cache-environment-key: cache-environment-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('environment.yaml') }}
cache-downloads: true
cache-downloads-key: cache-downloads-${{ runner.os}}-${{ runner.arch}}-${{ hashFiles('environment.yaml') }}
init-shell: none
generate-run-shell: true
- if: matrix.extras != ''
Expand Down Expand Up @@ -169,7 +173,9 @@ jobs:
python=${{ matrix.python-version }}
conda
cache-environment: true
cache-environment-key: cache-environment-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('environment.yaml') }}
cache-downloads: true
cache-downloads-key: cache-downloads-${{ runner.os}}-${{ runner.arch}}-${{ hashFiles('environment.yaml') }}
init-shell: none
generate-run-shell: true
- run: echo "version=$(conda list | awk '$1 == "${{ matrix.package }}" {print $2}')" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -239,7 +245,9 @@ jobs:
python=${{ matrix.python-version }}
conda
cache-environment: true
cache-environment-key: cache-environment-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('environment.yaml') }}
cache-downloads: true
cache-downloads-key: cache-downloads-${{ runner.os}}-${{ runner.arch}}-${{ hashFiles('environment.yaml') }}
init-shell: none
generate-run-shell: true
- if: matrix.extras != ''
Expand Down Expand Up @@ -298,7 +306,9 @@ jobs:
python=${{ matrix.python-version }}
conda
cache-environment: true
cache-environment-key: cache-environment-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('environment.yaml') }}
cache-downloads: true
cache-downloads-key: cache-downloads-${{ runner.os}}-${{ runner.arch}}-${{ hashFiles('environment.yaml') }}
init-shell: none
generate-run-shell: true
- if: matrix.extras != ''
Expand Down

0 comments on commit 8cbd460

Please sign in to comment.