Skip to content

Commit 307fab0

Browse files
committed
Restore and use cache
1 parent e0f3907 commit 307fab0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/hiperseis_main_ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,16 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@main
14+
- name: Restore dependencies
15+
id: cache-dependencies
16+
uses: actions/cache/restore@main
17+
with:
18+
path: |
19+
/home/runner
20+
/usr/share/miniconda/envs/hiperseis
21+
key: anaconda-3
1422
- name: Setting up environment
23+
if: steps.cache-dependencies.outputs.cache-hit != 'true'
1524
run: |
1625
wget -q https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-x86_64.sh -O anaconda.sh
1726
bash anaconda.sh -b -p $HOME/anaconda3 > /dev/null 2>&1
@@ -21,6 +30,7 @@ jobs:
2130
sudo apt-get install openmpi-bin libopenmpi-dev
2231
sudo apt-get install libhdf5-dev
2332
- name: Install dependencies
33+
if: steps.cache-dependencies.outputs.cache-hit != 'true'
2434
run: |
2535
git submodule update --init --recursive
2636
source setup_scripts/conda_env_linux.sh hiperseis

0 commit comments

Comments
 (0)