Skip to content

Commit

Permalink
Add ability to cache conda
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-alexandrov committed Sep 24, 2023
1 parent 699cb40 commit 4d682e5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ssh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2

- name: Setup upterm session
uses: lhotari/action-upterm@v1
with:
Expand All @@ -17,3 +18,18 @@ jobs:
limit-access-to-users: oleg-alexandrov
## If no one connects after 5 minutes, shut down server.
wait-timeout-minutes: 5

- name: Cache conda
id: cache-conda
uses: actions/cache@v3
env:
cache-name: cache-conda
with:
path: |
~/miniconda3
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/miniconda.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-

0 comments on commit 4d682e5

Please sign in to comment.