Add caching to full builds

This commit is contained in:
Artem Veremey
2021-05-29 22:31:02 -07:00
parent c01920e1f6
commit 310583993e
2 changed files with 54 additions and 0 deletions

View File

@@ -31,6 +31,12 @@ jobs:
# to be able to push to GitHub.
persist-credentials: false
- name: Setup caching for conda packages
uses: actions/cache@v2
with:
path: ~/conda_pkgs_dir
key: conda-macos-3-8-${{ hashFiles('requirements*.txt') }}
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
@@ -44,6 +50,27 @@ jobs:
# Needed for caching
use-only-tar-bz2: true
- name: Update pip version (Bash)
shell: bash -l {0}
run: |
conda update pip
pip --version
pip cache dir
- name: Get pip cache dir
shell: bash -l {0}
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: macos-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
macos-pip-
- name: Install gensim with conda
shell: bash -l {0}
run: |

View File

@@ -31,6 +31,12 @@ jobs:
# to be able to push to GitHub.
persist-credentials: false
- name: Setup caching for conda packages
uses: actions/cache@v2
with:
path: ~/conda_pkgs_dir
key: conda-windows-3-7-${{ hashFiles('requirements*.txt') }}
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
@@ -50,6 +56,27 @@ jobs:
run: >-
c:\windows\system32\icacls C:\Users\runneradmin\AppData\Local\Temp /grant "everyone":F /t
- name: Update pip version (Bash)
shell: bash -l {0}
run: |
conda update pip
pip --version
pip cache dir
- name: Get pip cache dir
shell: bash -l {0}
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: windows-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
windows-pip-
- name: Install fbprophet with conda
shell: bash -l {0}
run: |